This is an archive of the discontinued LLVM Phabricator instance.

[ELF2] Correctly set bits when -z now is specified
ClosedPublic

Authored by davide on Oct 19 2015, 5:53 PM.

Details

Summary

The option now just sets NOW bit in DT_FLAGS_1 but some loaders (e.g. FreeBSD) seem to requier also BIND_NOW bit to be set in DT_FLAGS. This is, also, what ld.bfd and gold do.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 37821.Oct 19 2015, 5:53 PM
davide retitled this revision from to [ELF2] Correctly set bits when -z now is specified.
davide updated this object.
davide added reviewers: ruiu, rafael, grimar.
davide added a subscriber: llvm-commits.
ruiu accepted this revision.Oct 19 2015, 6:04 PM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 19 2015, 6:04 PM
This revision was automatically updated to reflect the committed changes.