From b0bc1673475dacbd68155aefefe827ceae793edf Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Wed, 23 Feb 2011 18:06:29 +0000 Subject: [PATCH] re PR target/43810 (linking results in undefined references to _savegpr_* _restgpr_*_x) PR target/43810 Backport from mainline: 2010-07-23 Nathan Froyd * config.host (powerpc*-eabispe*): Set tmake_file. (powerpc*-eabi*): Likewise. * config/rs6000/t-ppccomm (EXTRA_PARTS): Add crtbegin, crtend, crtbeginS, crtendS, crtbeginT. From-SVN: r170443 --- libgcc/ChangeLog | 12 ++++++++++++ libgcc/config.host | 2 ++ libgcc/config/rs6000/t-ppccomm | 4 +++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index e0bd1996d07a..c539ce547082 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,15 @@ +2011-02-23 Nathan Froyd + + PR target/43810 + + Backport from mainline: + 2010-07-23 Nathan Froyd + + * config.host (powerpc*-eabispe*): Set tmake_file. + (powerpc*-eabi*): Likewise. + * config/rs6000/t-ppccomm (EXTRA_PARTS): Add crtbegin, crtend, + crtbeginS, crtendS, crtbeginT. + 2010-12-16 Release Manager * GCC 4.5.2 released. diff --git a/libgcc/config.host b/libgcc/config.host index b84940c5c498..c5f3d6e070ed 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -456,6 +456,7 @@ powerpc*-*-freebsd*) powerpc-*-netbsd*) ;; powerpc-*-eabispe*) + tmake_file="${tmake_file} rs6000/t-ppccomm" ;; powerpc-*-eabisimaltivec*) ;; @@ -466,6 +467,7 @@ powerpc-*-elf*) powerpc-*-eabialtivec*) ;; powerpc-*-eabi*) + tmake_file="${tmake_file} rs6000/t-ppccomm" ;; powerpc-*-rtems*) ;; diff --git a/libgcc/config/rs6000/t-ppccomm b/libgcc/config/rs6000/t-ppccomm index 1a711ebdb537..4548cd76c17e 100644 --- a/libgcc/config/rs6000/t-ppccomm +++ b/libgcc/config/rs6000/t-ppccomm @@ -15,7 +15,9 @@ LIB2ADD_ST += crtsavfpr.S crtresfpr.S \ e500crtsavg64gpr.S \ e500crtsavg64gprctr.S -EXTRA_PARTS += ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext) +EXTRA_PARTS += crtbegin$(objext) crtend$(objext) \ + crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \ + ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext) # We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and # end labels to all of the special sections used when we link using gcc. -- 2.47.2