This is an archive of the discontinued LLVM Phabricator instance.

[ELF2] Add support for -Bsymbolic
ClosedPublic

Authored by davide on Oct 7 2015, 5:21 PM.

Details

Reviewers
rafael
Summary

Needed by to build FreeBSD base system (see Ed's list).

Diff Detail

Event Timeline

davide updated this revision to Diff 36815.Oct 7 2015, 5:21 PM
davide retitled this revision from to [ELF2] Add support for -Bsymbolic.
davide updated this object.
davide added a reviewer: rafael.
davide set the repository for this revision to rL LLVM.
davide added a subscriber: emaste.
davide added a subscriber: llvm-commits.
emaste added inline comments.Oct 7 2015, 5:28 PM
ELF/OutputSections.cpp
415

Are there relevant rtlds that require DT_SYMBOLIC?

davide added inline comments.Oct 7 2015, 5:35 PM
ELF/OutputSections.cpp
415

Not that I'm aware of. That said, I mainly did it to match gold behavior.
If you think it's not required, I can drop it, although this comes almost for free, so I'm not that inclined to drop it.

If you think it's not required, I can drop it, although this comes almost for free, so I'm not that inclined to drop it.

It's a minor point and probably of no practical consequence so it

ELF/OutputSections.cpp
415

http://www.sco.com/developers/gabi/latest/ch5.dynamic.html

Its use has been superseded by the DF_SYMBOLIC flag.

rafael accepted this revision.Oct 13 2015, 12:19 PM
rafael edited edge metadata.

LGTM if setting only DF_SYMBOLIC.

It will be trivial to add DT_SYMBOLIC if we find a dynamic linker that needs that.

This revision is now accepted and ready to land.Oct 13 2015, 12:19 PM
davide closed this revision.Oct 13 2015, 2:05 PM
ELF/OutputSections.cpp