This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Fill between executable sections with trap instructions
AbandonedPublic

Authored by grimar on Mar 13 2017, 9:51 AM.

Details

Reviewers
ruiu
rafael
Summary

Currently, LLD leaves padding between executable sections as-is, so they are 0.
That is not desirable. Disassemblers would interpret the sequences of 0 bytes at
end of each function as machine instructions and print out bogus disassembly.

Patch adds filling of gaps between executable sections with one byte target
specific trap instruction.

This is PR32227.

Diff Detail

Event Timeline

grimar created this revision.Mar 13 2017, 9:51 AM
ruiu edited edge metadata.Mar 13 2017, 10:23 AM

D30886 is already out. Besides that, I believe this has the same performance issue as that patch.

grimar added a comment.EditedMar 14 2017, 12:51 AM
In D30901#699446, @ruiu wrote:

D30886 is already out. Besides that, I believe this has the same performance issue as that patch.

Ok, PR was free, I took it and did not notice that patch.

In D30901#699446, @ruiu wrote:

D30886 is already out. Besides that, I believe this has the same performance issue as that patch.

Ok, PR was free, I took it and did not notice that patch.

Sorry, I don't have bugzilla access yet, so couldn't pick it up :)

In D30901#699446, @ruiu wrote:

D30886 is already out. Besides that, I believe this has the same performance issue as that patch.

Ok, PR was free, I took it and did not notice that patch.

Sorry, I don't have bugzilla access yet, so couldn't pick it up :)

It's okay :)