For clang, similar to r236137, enable gnu hash generation for dynamic

ELF binaries on x86.
This commit is contained in:
Dimitry Andric 2012-05-29 20:21:24 +00:00
parent 54171f992c
commit baa749209e

View file

@ -4760,6 +4760,9 @@ void freebsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
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