[PATCH] D84131: [ELF] Support -r --gc-sections
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 19 14:59:15 PDT 2020
MaskRay created this revision.
MaskRay added reviewers: grimar, jhenderson, pcc, psmith.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
-r --gc-sections is usually not useful because it just makes intermediate output
smaller. https://bugs.llvm.org/show_bug.cgi?id=46700#c7 mentions a use case:
validating the absence of undefined symbols ealier than in the final link.
After D84129 <https://reviews.llvm.org/D84129> (SHT_GROUP support in -r links), we can support -r
--gc-sections without extra code. So let's allow it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D84131
Files:
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/test/ELF/driver.test
lld/test/ELF/relocatable-gc.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84131.279110.patch
Type: text/x-patch
Size: 6089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200719/3d4b6781/attachment-0001.bin>
More information about the llvm-commits
mailing list