From ccd84f51ad2f49e4db0752350427ce83e6deff2a Mon Sep 17 00:00:00 2001 From: Franz Sirl Date: Mon, 18 Feb 2002 18:46:19 +0000 Subject: [PATCH] sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static. 2002-02-18 Franz Sirl * 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 | 6 ++++++ gcc/config/rs6000/sysv4.h | 14 +++++++++++++- gcc/config/rs6000/t-ppccomm | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4cab2d..0a2e61a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-02-18 Franz Sirl + + * 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 * config/s390/s390.c (s390_emit_prologue): Do not set the diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index a9a2b05..feb574b 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -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: \ diff --git a/gcc/config/rs6000/t-ppccomm b/gcc/config/rs6000/t-ppccomm index e264586..bfbb2bc 100644 --- a/gcc/config/rs6000/t-ppccomm +++ b/gcc/config/rs6000/t-ppccomm @@ -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) -- 2.7.4