[PATCH] D16026: Add support for -export_dynamic cmdline option
Pete Cooper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 8 23:40:25 PST 2016
pete created this revision.
pete added reviewers: kledzik, lhames.
pete added a subscriber: llvm-commits.
pete added a project: lld.
Hi Nick, Lang
This adds support for the -export_dynamic command line option. In ld64, this prevents global symbols from being dead stripped in executables and dylibs.
I've added tests for all the combinations of executable/dylib/relocatable to make sure we match that behaviour.
Thanks,
Pete
http://reviews.llvm.org/D16026
Files:
include/lld/ReaderWriter/MachOLinkingContext.h
lib/Driver/DarwinLdDriver.cpp
lib/Driver/DarwinLdOptions.td
lib/ReaderWriter/MachO/MachOLinkingContext.cpp
test/mach-o/dead-strip-globals.yaml
unittests/DriverTests/DarwinLdDriverTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16026.44402.patch
Type: text/x-patch
Size: 5866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160109/b29b653a/attachment.bin>
More information about the llvm-commits
mailing list