This is an archive of the discontinued LLVM Phabricator instance.

Always use --eh-frame-hdr on FreeBSD, even for -static
ClosedPublic

Authored by emaste on Apr 12 2016, 1:30 PM.

Details

Summary

FreeBSD uses LLVM's libunwind on FreeBSD/arm64 today (and we expect to use it more widely in the future) and it requires the EH frame segment in static binaries.

This is the same as rL203742 for NetBSD.

Diff Detail

Event Timeline

emaste updated this revision to Diff 53447.Apr 12 2016, 1:30 PM
emaste retitled this revision from to Always use --eh-frame-hdr on FreeBSD, even for -static.
emaste updated this object.
emaste added reviewers: dim, andrew, davide.
emaste added a subscriber: cfe-commits.
emaste updated this revision to Diff 53452.Apr 12 2016, 1:42 PM

Test --eh-frame-hdr addition

rafael accepted this revision.Apr 12 2016, 1:52 PM
rafael added a reviewer: rafael.
rafael added a subscriber: rafael.

LGTM

This revision is now accepted and ready to land.Apr 12 2016, 1:52 PM
This revision was automatically updated to reflect the committed changes.
davide edited edge metadata.Apr 12 2016, 2:55 PM
davide added a subscriber: davide.

LGTM.