[PATCH] D109572: [ELF] Add --why-extract= to query why archive members/lazy object files are extracted
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 14 16:34:14 PDT 2021
MaskRay updated this revision to Diff 372585.
MaskRay retitled this revision from "[ELF] Add --why-extract= to query why an archive member/lazy object file is extracted" to "[ELF] Add --why-extract= to query why archive members/lazy object files are extracted".
MaskRay edited the summary of this revision.
MaskRay added a comment.
- add a backward reference test
- add an entry to lld/docs/ReleaseNotes.rst
I'll wait one week before committing.
Why not checking --gc-sections, I think this is a quite good approximation.
In the past, I have used a chain of -t and -y sym to dig such information.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109572/new/
https://reviews.llvm.org/D109572
Files:
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/MapFile.cpp
lld/ELF/MapFile.h
lld/ELF/Options.td
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/Writer.cpp
lld/docs/ReleaseNotes.rst
lld/docs/ld.lld.1
lld/test/ELF/why-extract.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109572.372585.patch
Type: text/x-patch
Size: 11237 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210914/8975959f/attachment.bin>
More information about the llvm-commits
mailing list