[PATCH] D13579: ELF2: Implement --as-needed.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 8 19:57:00 PDT 2015
ruiu created this revision.
ruiu added a reviewer: rafael.
ruiu added a subscriber: llvm-commits.
This patch adds AsNeeded and IsUsed bool fields to SharedFile. AsNeeded bit
is set if the DSO is enclosed with --as-needed and --no-as-needed. IsUsed
bit is off by default. When we adds a symbol to the symbol table for dynamic
linking, we set its SharedFile's IsUsed bit.
If AsNeeded is set but IsUsed is not set, we don't want to write that
file's SO name to DT_NEEDED field.
http://reviews.llvm.org/D13579
Files:
ELF/Config.h
ELF/Driver.cpp
ELF/InputFiles.cpp
ELF/InputFiles.h
ELF/LinkerScript.cpp
ELF/Options.td
ELF/OutputSections.cpp
ELF/Symbols.h
ELF/Writer.cpp
test/elf2/Inputs/shared2.s
test/elf2/as-needed.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13579.36922.patch
Type: text/x-patch
Size: 8519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151009/17b38c45/attachment.bin>
More information about the llvm-commits
mailing list