This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Fix for: bug 30237 - lld does not implement -f option
ClosedPublic

Authored by grimar on Sep 1 2016, 8:50 AM.

Details

Summary

From PR30237 description:

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.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 70019.Sep 1 2016, 8:50 AM
grimar retitled this revision from to [ELF] - Fix for: bug 30237 - lld does not implement -f option.
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
ruiu accepted this revision.Sep 1 2016, 1:25 PM
ruiu edited edge metadata.

LGTM

ELF/OutputSections.cpp
653 ↗(On Diff #70019)

nit: Since the scope is just two lines, I'd give even shorter name, say S.

This revision is now accepted and ready to land.Sep 1 2016, 1:25 PM
This revision was automatically updated to reflect the committed changes.