[ELF] - Fix for: bug 30237 - lld does not implement -f option
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 2 Sep 2016 09:13:05 +0000 (09:13 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 2 Sep 2016 09:13:05 +0000 (09:13 +0000)
commitb952ece2df20ef7ffc3afed3c1b6f8e7e1ddd01b
tree283e14f52640fba455bcafd48eb2098c65d27243
parented27d69037253116afb25c94ed08051e3aa35828
[ELF] - Fix for: bug 30237 - lld does not implement -f option

FreeBSD's libstdc++ build (used on tier-2 architectures) uses GNU ld's
-f <name> option, which sets the DT_AUXILIARY field to the specified name.
Multiple -f options may be specified and the DT_AUXILIARY entries
will be added in the order in which they appear.

Patch implements that option.

Differential revision: https://reviews.llvm.org/D24139

llvm-svn: 280475
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/OutputSections.cpp
lld/test/ELF/auxiliary.s [new file with mode: 0644]