This is an archive of the discontinued LLVM Phabricator instance.

ELF: --gdb-index: Do not add dead sections to the address area.
ClosedPublic

Authored by pcc on May 14 2017, 4:36 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.May 14 2017, 4:36 PM
grimar accepted this revision.May 15 2017, 2:32 AM

LGTM with a nit.

lld/test/ELF/Inputs/gdb-index-gc-sections.o.sh
4 ↗(On Diff #98936)

Please add comment about which clang version was used.
Also do you really need -fdebug-compilation-dir ?

This revision is now accepted and ready to land.May 15 2017, 2:32 AM
pcc added inline comments.May 15 2017, 10:57 AM
lld/test/ELF/Inputs/gdb-index-gc-sections.o.sh
4 ↗(On Diff #98936)

Please add comment about which clang version was used.

Will do while moving to .s.

Also do you really need -fdebug-compilation-dir ?

Yes otherwise my cwd leaks into the object file.

This revision was automatically updated to reflect the committed changes.