[PATCH] [ELF] Add --{,no-}as-needed.
Rui Ueyama
ruiu at google.com
Thu Jan 15 14:35:17 PST 2015
Hi atanasyan, Bigcheese, shankarke,
The previous default behavior of LLD was --as-needed. LLD linked
against a DSO only if the DSO file was actually used to link an
executable (i.e. at least one symbol was resolved using the shared
library file.) What was missing was --no-as-needed support.
In this patch I added a boolean flag to FileNode for --as-needed.
I also added an accessor to DSO name to shared library file class.
http://reviews.llvm.org/D7009
Files:
include/lld/Core/Node.h
include/lld/Core/SharedLibraryFile.h
include/lld/ReaderWriter/ELFLinkingContext.h
lib/Driver/GnuLdDriver.cpp
lib/Driver/TODO.rst
lib/ReaderWriter/ELF/DynamicFile.h
lib/ReaderWriter/ELF/OutputELFWriter.h
lib/ReaderWriter/MachO/File.h
test/elf/Mips/dynsym-table-1.test
test/elf/as-needed.test
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7009.18259.patch
Type: text/x-patch
Size: 8325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150115/62085abb/attachment.bin>
More information about the llvm-commits
mailing list