[llvm-commits] [llvm-gcc-4.2] r67369 - in /llvm-gcc-4.2/trunk/gcc/config: i386/linux.h i386/linux64.h rs6000/sysv4.h
Nick Lewycky
nicholas at mxc.ca
Fri Mar 20 01:00:57 PDT 2009
Author: nicholas
Date: Fri Mar 20 03:00:57 2009
New Revision: 67369
URL: http://llvm.org/viewvc/llvm-project?rev=67369&view=rev
Log:
Pass --hash-style=both to the linker on Linux. This reduces dynamic link time
for programs produced by llvm-gcc.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/linux.h
llvm-gcc-4.2/trunk/gcc/config/i386/linux64.h
llvm-gcc-4.2/trunk/gcc/config/rs6000/sysv4.h
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/linux.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/linux.h?rev=67369&r1=67368&r2=67369&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/linux.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/linux.h Fri Mar 20 03:00:57 2009
@@ -109,7 +109,8 @@
{ "dynamic_linker", LINUX_DYNAMIC_LINKER }
#undef LINK_SPEC
-#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
+/* LLVM LOCAL set linker hash_style */
+#define LINK_SPEC "-m %(link_emulation) --hash-style=both %{shared:-shared} \
%{!shared: \
%{!ibcs: \
%{!static: \
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/linux64.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/linux64.h?rev=67369&r1=67368&r2=67369&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/linux64.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/linux64.h Fri Mar 20 03:00:57 2009
@@ -53,7 +53,8 @@
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
#undef LINK_SPEC
-#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
+/* LLVM LOCAL set linker hash_style */
+#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} --hash-style=both \
%{shared:-shared} \
%{!shared: \
%{!static: \
Modified: llvm-gcc-4.2/trunk/gcc/config/rs6000/sysv4.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/rs6000/sysv4.h?rev=67369&r1=67368&r2=67369&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/rs6000/sysv4.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/rs6000/sysv4.h Fri Mar 20 03:00:57 2009
@@ -910,8 +910,9 @@
#define LINUX_DYNAMIC_LINKER \
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
- %{rdynamic:-export-dynamic} \
+/* LLVM LOCAL set linker hash_style */
+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=both %{!shared: \
+ %{!static: %{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
#if defined(HAVE_LD_EH_FRAME_HDR)
More information about the llvm-commits
mailing list