svn commit: r303170 - stable/10/contrib/llvm/tools/clang/lib/Driver
Ed Maste
emaste at FreeBSD.org
Fri Jul 22 01:16:57 UTC 2016
Author: emaste
Date: Fri Jul 22 01:16:56 2016
New Revision: 303170
URL: https://svnweb.freebsd.org/changeset/base/303170
Log:
MFC r303031: clang++: Always use --eh-frame-hdr on FreeBSD, even for -static
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.
Modified:
stable/10/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
==============================================================================
--- stable/10/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Fri Jul 22 00:43:32 2016 (r303169)
+++ stable/10/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Fri Jul 22 01:16:56 2016 (r303170)
@@ -5848,12 +5848,12 @@ void freebsd::Link::ConstructJob(Compila
if (Args.hasArg(options::OPT_pie))
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 {
More information about the svn-src-stable-10
mailing list