sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Mon, 18 Feb 2002 18:46:19 +0000 (18:46 +0000)
committerFranz Sirl <sirl@gcc.gnu.org>
Mon, 18 Feb 2002 18:46:19 +0000 (18:46 +0000)
2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

* config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
(LINK_EH_SPEC): Define.
* config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.

From-SVN: r49844

gcc/ChangeLog
gcc/config/rs6000/sysv4.h
gcc/config/rs6000/t-ppccomm

index c4cab2d..0a2e61a 100644 (file)
@@ -1,3 +1,9 @@
+2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+       * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
+       (LINK_EH_SPEC): Define.
+       * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
+
 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * config/s390/s390.c (s390_emit_prologue): Do not set the
index a9a2b05..feb574b 100644 (file)
@@ -893,7 +893,7 @@ do {                                                \
     } \
 }}"
 
-#define        CC1_ENDIAN_DEFAULT_SPEC "%(cc1_endian_big_spec)"
+#define        CC1_ENDIAN_DEFAULT_SPEC "%(cc1_endian_big)"
 
 /* Pass -G xxx to the compiler and set correct endian mode.  */
 #define        CC1_SPEC "%{G*} \
@@ -1197,10 +1197,18 @@ do {                                            \
 %{profile:-lc_p} %{!profile:-lc}}}"
 #endif
 
+#ifdef USE_GNULIBC_1
 #define        STARTFILE_LINUX_SPEC "\
 %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
 %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} \
 %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
+#else
+#define        STARTFILE_LINUX_SPEC "\
+%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
+%{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} \
+%{static:crtbeginT.o%s} \
+%{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
+#endif
 
 #define        ENDFILE_LINUX_SPEC "%{!shared:crtend.o%s} %{shared:crtendS.o%s} \
 %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}"
@@ -1211,6 +1219,10 @@ do {                                             \
   %{rdynamic:-export-dynamic} \
   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
 
+#if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
+# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
+#endif
+
 #ifdef USE_GNULIBC_1
 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__linux__              \
 %{!undef:                                                      \
index e264586..bfbb2bc 100644 (file)
@@ -38,7 +38,7 @@ MULTILIB_MATCHES_SYSV = mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi
 LIBGCC = stmp-multilib
 INSTALL_LIBGCC = install-multilib
 EXTRA_MULTILIB_PARTS = crtbegin$(objext) crtend$(objext) \
-  crtbeginS$(objext) crtendS$(objext) \
+  crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \
   ecrti$(objext) ecrtn$(objext) \
   ncrti$(objext) ncrtn$(objext)