[PATCH] D19029: Always use --eh-frame-hdr on FreeBSD, even for -static
Ed Maste via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 12 13:30:49 PDT 2016
emaste created this revision.
emaste added reviewers: dim, andrew, davide.
emaste added a subscriber: cfe-commits.
Herald added subscribers: emaste, aemerson.
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.
http://reviews.llvm.org/D19029
Files:
lib/Driver/Tools.cpp
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -8197,12 +8197,12 @@
if (IsPIE)
CmdArgs.push_back("-pie");
+ CmdArgs.push_back("--eh-frame-hdr");
if (Args.hasArg(options::OPT_static)) {
CmdArgs.push_back("-Bstatic");
} else {
if (Args.hasArg(options::OPT_rdynamic))
CmdArgs.push_back("-export-dynamic");
- CmdArgs.push_back("--eh-frame-hdr");
if (Args.hasArg(options::OPT_shared)) {
CmdArgs.push_back("-Bshareable");
} else {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19029.53447.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160412/c7477437/attachment.bin>
More information about the cfe-commits
mailing list