[from FC15 via gcc svn branches/redhat/gcc-4_5-branch r161595 <mikpe@it.uu.se>]

gcc/

2010-06-30  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/linux.h (LINK_SPEC): Add --hash-style=gnu.
	* config/i386/linux64.h (LINK_SPEC): Likewise.
	* config/rs6000/sysv4.h (LINK_OS_LINUX_SPEC): Likewise.
	* config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Likewise.
	* config/s390/linux.h (LINK_SPEC): Likewise.
	* config/ia64/linux.h (LINK_SPEC): Likewise.
	* config/sparc/linux.h (LINK_SPEC): Likewise.
	* config/sparc/linux64.h (LINK_SPEC): Likewise.
	* config/alpha/linux-elf.h (LINK_SPEC): Likewise.
	* config/arm/linux-elf.h (LINK_SPEC): Likewise.

--- gcc-4.6.3/gcc/config/alpha/linux-elf.h.~1~	2010-12-09 14:27:07.000000000 +0100
+++ gcc-4.6.3/gcc/config/alpha/linux-elf.h	2012-05-03 22:05:49.000000000 +0200
@@ -41,7 +41,7 @@ along with GCC; see the file COPYING3.  
 
 #define ELF_DYNAMIC_LINKER	LINUX_DYNAMIC_LINKER
 
-#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax}		\
+#define LINK_SPEC "-m elf64alpha --hash-style=gnu %{G*} %{relax:-relax}	\
   %{O*:-O3} %{!O*:-O1}						\
   %{shared:-shared}						\
   %{!shared:							\
--- gcc-4.6.3/gcc/config/arm/linux-elf.h.~1~	2011-01-14 19:42:32.000000000 +0100
+++ gcc-4.6.3/gcc/config/arm/linux-elf.h	2012-05-03 22:07:21.000000000 +0200
@@ -65,6 +65,7 @@
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
 #define LINUX_TARGET_LINK_SPEC  "%{h*} \
+   --hash-style=gnu \
    %{static:-Bstatic} \
    %{shared:-shared} \
    %{symbolic:-Bsymbolic} \
--- gcc-4.6.3/gcc/config/i386/linux.h.~1~	2011-09-08 11:12:35.000000000 +0200
+++ gcc-4.6.3/gcc/config/i386/linux.h	2012-05-03 22:05:49.000000000 +0200
@@ -104,7 +104,7 @@ along with GCC; see the file COPYING3.  
   { "dynamic_linker", LINUX_DYNAMIC_LINKER }
 
 #undef	LINK_SPEC
-#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
+#define LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \
   %{!shared: \
     %{!static: \
       %{rdynamic:-export-dynamic} \
--- gcc-4.6.3/gcc/config/i386/linux64.h.~1~	2011-09-08 11:12:35.000000000 +0200
+++ gcc-4.6.3/gcc/config/i386/linux64.h	2012-05-03 22:05:49.000000000 +0200
@@ -78,7 +78,7 @@ see the files COPYING3 and COPYING.RUNTI
  %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}"
 
 #undef	LINK_SPEC
-#define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} \
+#define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} --hash-style=gnu \
   %{shared:-shared} \
   %{!shared: \
     %{!static: \
--- gcc-4.6.3/gcc/config/ia64/linux.h.~1~	2011-09-08 11:12:35.000000000 +0200
+++ gcc-4.6.3/gcc/config/ia64/linux.h	2012-05-03 22:05:49.000000000 +0200
@@ -64,7 +64,7 @@ do {						\
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
 
 #undef LINK_SPEC
-#define LINK_SPEC "\
+#define LINK_SPEC "--hash-style=gnu \
   %{shared:-shared} \
   %{!shared: \
     %{!static: \
--- gcc-4.6.3/gcc/config/rs6000/linux64.h.~1~	2011-03-07 08:50:23.000000000 +0100
+++ gcc-4.6.3/gcc/config/rs6000/linux64.h	2012-05-03 22:05:49.000000000 +0200
@@ -179,16 +179,16 @@ extern int dot_symbols;
 #ifndef	RS6000_BI_ARCH
 #define	ASM_DEFAULT_SPEC "-mppc64"
 #define	ASM_SPEC	 "%(asm_spec64) %(asm_spec_common)"
-#define	LINK_OS_LINUX_SPEC "%(link_os_linux_spec64)"
+#define	LINK_OS_LINUX_SPEC "--hash-style=gnu %(link_os_linux_spec64)"
 #else
 #if DEFAULT_ARCH64_P
 #define	ASM_DEFAULT_SPEC "-mppc%{!m32:64}"
 #define	ASM_SPEC	 "%{m32:%(asm_spec32)}%{!m32:%(asm_spec64)} %(asm_spec_common)"
-#define	LINK_OS_LINUX_SPEC "%{m32:%(link_os_linux_spec32)}%{!m32:%(link_os_linux_spec64)}"
+#define	LINK_OS_LINUX_SPEC "--hash-style=gnu %{m32:%(link_os_linux_spec32)}%{!m32:%(link_os_linux_spec64)}"
 #else
 #define	ASM_DEFAULT_SPEC "-mppc%{m64:64}"
 #define	ASM_SPEC	 "%{!m64:%(asm_spec32)}%{m64:%(asm_spec64)} %(asm_spec_common)"
-#define	LINK_OS_LINUX_SPEC "%{!m64:%(link_os_linux_spec32)}%{m64:%(link_os_linux_spec64)}"
+#define	LINK_OS_LINUX_SPEC "--hash-style=gnu %{!m64:%(link_os_linux_spec32)}%{m64:%(link_os_linux_spec64)}"
 #endif
 #endif
 
--- gcc-4.6.3/gcc/config/rs6000/sysv4.h.~1~	2011-03-07 08:50:23.000000000 +0100
+++ gcc-4.6.3/gcc/config/rs6000/sysv4.h	2012-05-03 22:05:49.000000000 +0200
@@ -830,7 +830,7 @@ extern int fixuplabelno;
 #define LINUX_DYNAMIC_LINKER \
   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
 
-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
   %{rdynamic:-export-dynamic} \
   -dynamic-linker " LINUX_DYNAMIC_LINKER "}}"
 
--- gcc-4.6.3/gcc/config/s390/linux.h.~1~	2010-12-09 14:27:07.000000000 +0100
+++ gcc-4.6.3/gcc/config/s390/linux.h	2012-05-03 22:05:49.000000000 +0200
@@ -77,7 +77,7 @@ along with GCC; see the file COPYING3.  
 
 #undef  LINK_SPEC
 #define LINK_SPEC \
-  "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
+  "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \
    %{shared:-shared} \
    %{!shared: \
       %{static:-static} \
--- gcc-4.6.3/gcc/config/sparc/linux.h.~1~	2011-09-08 11:12:35.000000000 +0200
+++ gcc-4.6.3/gcc/config/sparc/linux.h	2012-05-03 22:05:49.000000000 +0200
@@ -74,7 +74,7 @@ along with GCC; see the file COPYING3.  
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
 #undef  LINK_SPEC
-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
+#define LINK_SPEC "-m elf32_sparc --hash-style=gnu -Y P,/usr/lib %{shared:-shared} \
   %{!mno-relax:%{!r:-relax}} \
   %{!shared: \
     %{!static: \
--- gcc-4.6.3/gcc/config/sparc/linux64.h.~1~	2011-09-08 11:12:35.000000000 +0200
+++ gcc-4.6.3/gcc/config/sparc/linux64.h	2012-05-03 22:05:49.000000000 +0200
@@ -113,7 +113,7 @@ along with GCC; see the file COPYING3.  
   { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },	  \
   { "link_arch",	 LINK_ARCH_SPEC },
 
-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
+#define LINK_ARCH32_SPEC "-m elf32_sparc --hash-style=gnu -Y P,%R/usr/lib %{shared:-shared} \
   %{!shared: \
     %{!static: \
       %{rdynamic:-export-dynamic} \
@@ -121,7 +121,7 @@ along with GCC; see the file COPYING3.  
       %{static:-static}} \
 "
 
-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
+#define LINK_ARCH64_SPEC "-m elf64_sparc --hash-style=gnu -Y P,%R/usr/lib64 %{shared:-shared} \
   %{!shared: \
     %{!static: \
       %{rdynamic:-export-dynamic} \
@@ -142,6 +142,7 @@ along with GCC; see the file COPYING3.  
 #define LINK_SPEC "\
 %(link_arch) \
 %{mlittle-endian:-EL} \
+--hash-style=gnu \
 %{!mno-relax:%{!r:-relax}} \
 "
 
@@ -193,7 +194,7 @@ along with GCC; see the file COPYING3.  
 #else /* !SPARC_BI_ARCH */
 
 #undef LINK_SPEC
-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
+#define LINK_SPEC "-m elf64_sparc --hash-style=gnu -Y P,%R/usr/lib64 %{shared:-shared} \
   %{!shared: \
     %{!static: \
       %{rdynamic:-export-dynamic} \
