Blame SOURCES/gcc44-build-id.patch

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