[PATCH] D116946: [ELF] Use tombstone values for discarded symbols in relocatable output
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 10 07:31:37 PST 2022
ikudrin created this revision.
ikudrin added reviewers: MaskRay, peter.smith.
ikudrin added projects: lld, LLVM.
Herald added subscribers: luke957, s.egerton, simoncook, arichardson, emaste.
ikudrin requested review of this revision.
This extends D81784 <https://reviews.llvm.org/D81784>. Sections can be discarded when linking a relocatable output. Before the patch, LLD did not update the content of debug sections and only replaced the corresponding relocations with _NONE, which could break the debug information.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116946
Files:
lld/ELF/InputSection.cpp
lld/test/ELF/debug-dead-reloc-relocatable.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116946.398635.patch
Type: text/x-patch
Size: 5481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220110/84c341e6/attachment.bin>
More information about the llvm-commits
mailing list