This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Do not produce broken .dynsym with --no-rosegment.
ClosedPublic

Authored by grimar on Oct 5 2017, 3:54 AM.

Details

Summary

We produce broken output currently.
Code that writes .dynsym assumes output buffer is zero-filled,
though that is not always true. When --no-rosegment is given,
buffer can be filled with trap instructions. Patch fixes the issue.

It is relative with PR34705.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Oct 5 2017, 3:54 AM
grimar edited the summary of this revision. (Show Details)Oct 5 2017, 4:07 AM
grimar updated this revision to Diff 117798.Oct 5 2017, 4:39 AM
  • Simplified testcase.
ruiu accepted this revision.Oct 5 2017, 8:47 PM

LGTM

This revision is now accepted and ready to land.Oct 5 2017, 8:47 PM
This revision was automatically updated to reflect the committed changes.