Date: Fri, 22 Jul 2016 12:55:32 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r303184 - stable/11/contrib/llvm/tools/clang/lib/Driver Message-ID: <201607221255.u6MCtWVa092108@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Fri Jul 22 12:55:31 2016 New Revision: 303184 URL: https://svnweb.freebsd.org/changeset/base/303184 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. Approved by: re (kib) Modified: stable/11/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Directory Properties: stable/11/ (props changed) Modified: stable/11/contrib/llvm/tools/clang/lib/Driver/Tools.cpp ============================================================================== --- stable/11/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Fri Jul 22 06:21:03 2016 (r303183) +++ stable/11/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Fri Jul 22 12:55:31 2016 (r303184) @@ -7922,12 +7922,12 @@ void freebsd::Linker::ConstructJob(Compi 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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607221255.u6MCtWVa092108>