svn commit: r303184 - stable/11/contrib/llvm/tools/clang/lib/Driver

Ed Maste emaste at FreeBSD.org
Fri Jul 22 12:55:33 UTC 2016


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 {


More information about the svn-src-stable mailing list