Skip to content

loadable segment being written as 0 bytes when -t option is used #3

@elfmaster

Description

@elfmaster

The -t (opts.text_all) will make sure the complete text of every segment is written out. This results in occasional segments not being completely written out for instance:

LOAD 0x00000000001e1000 0x00007f17296ba000 0x0000000000000000
0x0000000000000000 0x00000000001ff000 1000
LOAD 0x00000000001e1000 0x00007f17298b9000 0x0000000000000000
0x0000000000004000 0x0000000000004000 R 1000

Notice the file size (The 2nd line after the first LOAD line) is 0x000000000000000

And therefore the offset of the following segment starts at the same offset as the previous. This is a bug that will result in missing code.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions