From 7dae689d322ae2a84b82f4762af780bb3f84b251 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sun, 15 Jul 2012 12:53:06 +0000 Subject: [PATCH] Enable new linker behaviour on FreeBSD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160231 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 66d792ffba..59196b20e2 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -4996,6 +4996,8 @@ void freebsd::Link::ConstructJob(Compilation &C, const JobAction &JA, const char *LinkingOutput) const { const Driver &D = getToolChain().getDriver(); ArgStringList CmdArgs; + CmdArgs.push_back("--hash-style=both"); + CmdArgs.push_back("--enable-new-dtags"); if (!D.SysRoot.empty()) CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot));