]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/43810 (linking results in undefined references to _savegpr_* _restgpr_*_x)
authorNathan Froyd <froydnj@codesourcery.com>
Wed, 23 Feb 2011 18:06:29 +0000 (18:06 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Wed, 23 Feb 2011 18:06:29 +0000 (18:06 +0000)
PR target/43810

Backport from mainline:
2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>

* 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
libgcc/config.host
libgcc/config/rs6000/t-ppccomm

index e0bd1996d07a0abdc1786b6c994861732da1a279..c539ce547082eb18eb986baecd407d6bd04a828b 100644 (file)
@@ -1,3 +1,15 @@
+2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR target/43810
+
+       Backport from mainline:
+       2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * 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.
index b84940c5c4982ffbf2b52d2e6a98a25199d14708..c5f3d6e070edc4af9d90325445f7904f86bf125d 100644 (file)
@@ -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*)
        ;;
index 1a711ebdb5372d5e254ada51fc522abcfcb3ab96..4548cd76c17e0d77ea41c057c0889bd00bcf1952 100644 (file)
@@ -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.