tstellar / rpms / gcc

Forked from rpms/gcc 4 years ago
Clone
59ad88b
2007-07-22  Roland McGrath  <roland@redhat.com>
59ad88b
59ad88b
	* config/rs6000/sysv4.h (LINK_EH_SPEC): Add --build-id for
59ad88b
	non-relocatable link.
59ad88b
	* config/linux.h (LINK_EH_SPEC): Likewise.
59ad88b
	* config/alpha/elf.h (LINK_EH_SPEC): Likewise.
59ad88b
	* config/ia64/linux.h (LINK_EH_SPEC): Likewise.
59ad88b
59ad88b
--- gcc/config/rs6000/sysv4.h.~1~
59ad88b
+++ gcc/config/rs6000/sysv4.h
e8d96b9
@@ -906,7 +906,7 @@ extern int fixuplabelno;
e8d96b9
   %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
59ad88b
 
59ad88b
 #if defined(HAVE_LD_EH_FRAME_HDR)
59ad88b
-# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
59ad88b
+# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
59ad88b
 #endif
59ad88b
 
59ad88b
 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
59ad88b
--- gcc/config/linux.h.~1~
59ad88b
+++ gcc/config/linux.h
59ad88b
@@ -85,7 +85,7 @@ Boston, MA 02110-1301, USA.  */
59ad88b
     } while (0)
59ad88b
 
59ad88b
 #if defined(HAVE_LD_EH_FRAME_HDR)
59ad88b
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
59ad88b
+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
59ad88b
 #endif
59ad88b
 
59ad88b
 /* Define this so we can compile MS code for use with WINE.  */
59ad88b
--- gcc/config/alpha/elf.h.~1~
59ad88b
+++ gcc/config/alpha/elf.h
7c07471
@@ -421,7 +421,7 @@ extern int alpha_this_gpdisp_sequence_nu
59ad88b
    I imagine that other systems will catch up.  In the meantime, it
59ad88b
    doesn't harm to make sure that the data exists to be used later.  */
59ad88b
 #if defined(HAVE_LD_EH_FRAME_HDR)
59ad88b
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
59ad88b
+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
59ad88b
 #endif
7c07471
 
7c07471
 /* A C statement (sans semicolon) to output to the stdio stream STREAM
59ad88b
--- gcc/config/ia64/linux.h.~1~
59ad88b
+++ gcc/config/ia64/linux.h
59ad88b
@@ -56,7 +56,7 @@ do {						\
59ad88b
    Signalize that because we have fde-glibc, we don't need all C shared libs
59ad88b
    linked against -lgcc_s.  */
59ad88b
 #undef LINK_EH_SPEC
59ad88b
-#define LINK_EH_SPEC ""
6bee867
+#define LINK_EH_SPEC "%{!r:--build-id} "
59ad88b
 
59ad88b
 #define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h"
59ad88b