Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2012 20:21:24 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236258 - head/contrib/llvm/tools/clang/lib/Driver
Message-ID:  <201205292021.q4TKLOrq000887@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue May 29 20:21:24 2012
New Revision: 236258
URL: http://svn.freebsd.org/changeset/base/236258

Log:
  For clang, similar to r236137, enable gnu hash generation for dynamic
  ELF binaries on x86.

Modified:
  head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp

Modified: head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp	Tue May 29 20:16:26 2012	(r236257)
+++ head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp	Tue May 29 20:21:24 2012	(r236258)
@@ -4760,6 +4760,9 @@ void freebsd::Link::ConstructJob(Compila
       CmdArgs.push_back("-dynamic-linker");
       CmdArgs.push_back("/libexec/ld-elf.so.1");
     }
+    llvm::Triple::ArchType Arch = getToolChain().getArch();
+    if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)
+      CmdArgs.push_back("--hash-style=both");
   }
 
   // When building 32-bit code on FreeBSD/amd64, we have to explicitly



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205292021.q4TKLOrq000887>