public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
       [not found] <bug-43810-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-16 13:18 ` rguenth at gcc dot gnu.org
  2010-12-20 12:22 ` wd at denx dot de
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.2                       |4.5.3

--- Comment #14 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:23 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
       [not found] <bug-43810-4@http.gcc.gnu.org/bugzilla/>
  2010-12-16 13:18 ` [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x rguenth at gcc dot gnu.org
@ 2010-12-20 12:22 ` wd at denx dot de
  2011-02-15  0:57 ` nitin.a.kamble at intel dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 21+ messages in thread
From: wd at denx dot de @ 2010-12-20 12:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

Wolfgang Denk <wd at denx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wd at denx dot de

--- Comment #15 from Wolfgang Denk <wd at denx dot de> 2010-12-20 12:22:22 UTC ---
For the record: the problem appears to be still present in 4.5.1 (at least I
run into the same symptoms when trying to build poky with
"--enable-target-optspace" enabled.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
       [not found] <bug-43810-4@http.gcc.gnu.org/bugzilla/>
  2010-12-16 13:18 ` [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x rguenth at gcc dot gnu.org
  2010-12-20 12:22 ` wd at denx dot de
@ 2011-02-15  0:57 ` nitin.a.kamble at intel dot com
  2011-02-23 18:10 ` froydnj at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 21+ messages in thread
From: nitin.a.kamble at intel dot com @ 2011-02-15  0:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

Nitin Kamble <nitin.a.kamble at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nitin.a.kamble at intel dot
                   |                            |com

--- Comment #16 from Nitin Kamble <nitin.a.kamble at intel dot com> 2011-02-15 00:43:47 UTC ---
4.5.2 also carries the issue.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
       [not found] <bug-43810-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-02-15  0:57 ` nitin.a.kamble at intel dot com
@ 2011-02-23 18:10 ` froydnj at gcc dot gnu.org
  2011-02-23 18:25 ` froydnj at gcc dot gnu.org
  2011-03-23  0:31 ` ilya.yanok at gmail dot com
  5 siblings, 0 replies; 21+ messages in thread
From: froydnj at gcc dot gnu.org @ 2011-02-23 18:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

--- Comment #17 from Nathan Froyd <froydnj at gcc dot gnu.org> 2011-02-23 18:06:38 UTC ---
Author: froydnj
Date: Wed Feb 23 18:06:29 2011
New Revision: 170443

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170443
Log:
    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.

Modified:
    branches/gcc-4_5-branch/libgcc/ChangeLog
    branches/gcc-4_5-branch/libgcc/config.host
    branches/gcc-4_5-branch/libgcc/config/rs6000/t-ppccomm


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
       [not found] <bug-43810-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-02-23 18:10 ` froydnj at gcc dot gnu.org
@ 2011-02-23 18:25 ` froydnj at gcc dot gnu.org
  2011-03-23  0:31 ` ilya.yanok at gmail dot com
  5 siblings, 0 replies; 21+ messages in thread
From: froydnj at gcc dot gnu.org @ 2011-02-23 18:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

Nathan Froyd <froydnj at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |froydnj at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #18 from Nathan Froyd <froydnj at gcc dot gnu.org> 2011-02-23 18:10:02 UTC ---
Fixed on the 4.5 branch.

If there are still problems with --enable-target-optspace, please open a
separate bug for those.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
       [not found] <bug-43810-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2011-02-23 18:25 ` froydnj at gcc dot gnu.org
@ 2011-03-23  0:31 ` ilya.yanok at gmail dot com
  5 siblings, 0 replies; 21+ messages in thread
From: ilya.yanok at gmail dot com @ 2011-03-23  0:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

Ilya Yanok <ilya.yanok at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilya.yanok at gmail dot com

--- Comment #19 from Ilya Yanok <ilya.yanok at gmail dot com> 2011-03-22 23:40:01 UTC ---
I still get the error similar to Khem's one with gcc 4.5.1 and proposed patch
applied:

ccache powerpc-poky-linux-gcc -mcpu=603e  -msoft-float
--sysroot=/opt/work/yanok/poky/build/tmp/sysroots/ppc603e-poky-linux -nostdlib
-nostartfiles -o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/iconv_prog
-msoft-float -Wl,-dynamic-linker=/lib/ld.so.1   -Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/csu/crt1.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/csu/crti.o
`ccache powerpc-poky-linux-gcc -mcpu=603e  -msoft-float
--sysroot=/opt/work/yanok/poky/build/tmp/sysroots/ppc603e-poky-linux
-msoft-float --print-file-name=crtbegin.o`
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/iconv_prog.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/iconv_charmap.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/charmap.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/charmap-dir.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/linereader.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/dummy-repertoire.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/simple-hash.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/xstrdup.o
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/iconv/xmalloc.o

-Wl,-rpath-link=/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/math:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/elf:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/dlfcn:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/nss:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/nis:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/rt:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/resolv:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/crypt:/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/nptl
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/libc.so.6
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/libc_nonshared.a
-Wl,--as-needed
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/elf/ld.so
-Wl,--no-as-needed -lgcc -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `ccache
powerpc-poky-linux-gcc -mcpu=603e  -msoft-float
--sysroot=/opt/work/yanok/poky/build/tmp/sysroots/ppc603e-poky-linux
-msoft-float --print-file-name=crtend.o`
/opt/work/yanok/poky/build/tmp/work/ppc603e-poky-linux/eglibc-2.12-r13/build-powerpc-poky-linux/csu/crtn.o 
/opt/work/yanok/poky/build/tmp/sysroots/x86_64-linux/usr/lib/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.5.1/crtend.o:
In function `__do_global_ctors_aux':              
crtstuff.c:(.text+0xc): undefined reference to `_savegpr_31'                    
collect2: ld returned 1 exit status

Though libgcc.a does contain _savegpr_31.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (13 preceding siblings ...)
  2010-07-22  8:48 ` rguenth at gcc dot gnu dot org
@ 2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
  14 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31  9:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from rguenth at gcc dot gnu dot org  2010-07-31 09:29 -------
GCC 4.5.1 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.1                       |4.5.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (12 preceding siblings ...)
  2010-05-19 22:58 ` patrick at motec dot com dot au
@ 2010-07-22  8:48 ` rguenth at gcc dot gnu dot org
  2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
  14 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-22  8:48 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (11 preceding siblings ...)
  2010-05-19 16:26 ` raj dot khem at gmail dot com
@ 2010-05-19 22:58 ` patrick at motec dot com dot au
  2010-07-22  8:48 ` rguenth at gcc dot gnu dot org
  2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
  14 siblings, 0 replies; 21+ messages in thread
From: patrick at motec dot com dot au @ 2010-05-19 22:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from patrick at motec dot com dot au  2010-05-19 22:58 -------
(In reply to comment #10)
> See comment #4.  I believe this is a pilot error.
> 

Richard,

Are you referring to my original bug report or to Khem's link problem.

I don't think (unless I've messed up my gcc build) that my original report is
misuse.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (10 preceding siblings ...)
  2010-05-19 12:35 ` rguenth at gcc dot gnu dot org
@ 2010-05-19 16:26 ` raj dot khem at gmail dot com
  2010-05-19 22:58 ` patrick at motec dot com dot au
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: raj dot khem at gmail dot com @ 2010-05-19 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from raj dot khem at gmail dot com  2010-05-19 16:25 -------
(In reply to comment #10)
> See comment #4.  I believe this is a pilot error.
> 

yeah on 4.5.0 libgcc.so is a linker script but 4.4 is still broken with this
issues

I guess http://gcc.gnu.org/ml/gcc-cvs/2009-09/msg00315.html needs backported to
4.4 branch as well.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (9 preceding siblings ...)
  2010-05-11 13:35 ` rguenth at gcc dot gnu dot org
@ 2010-05-19 12:35 ` rguenth at gcc dot gnu dot org
  2010-05-19 16:26 ` raj dot khem at gmail dot com
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 12:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2010-05-19 12:34 -------
See comment #4.  I believe this is a pilot error.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (8 preceding siblings ...)
  2010-04-30  6:57 ` patrick at motec dot com dot au
@ 2010-05-11 13:35 ` rguenth at gcc dot gnu dot org
  2010-05-19 12:35 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-11 13:35 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (7 preceding siblings ...)
  2010-04-30  4:55 ` raj dot khem at gmail dot com
@ 2010-04-30  6:57 ` patrick at motec dot com dot au
  2010-05-11 13:35 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: patrick at motec dot com dot au @ 2010-04-30  6:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from patrick at motec dot com dot au  2010-04-30 06:57 -------
Khem,

Your libgcc.a looks fine. As far as I know, libgcc.a is supposed to be the last
library listed when linking so the behaviour you are seeing is normal.

My problem is that libgcc.a does not contain _savegpr_* and _restgpr_*
functions at all. It looks like they are only built for linux and gnu targets,
not eabispe.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (6 preceding siblings ...)
  2010-04-30  4:34 ` raj dot khem at gmail dot com
@ 2010-04-30  4:55 ` raj dot khem at gmail dot com
  2010-04-30  6:57 ` patrick at motec dot com dot au
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: raj dot khem at gmail dot com @ 2010-04-30  4:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from raj dot khem at gmail dot com  2010-04-30 04:55 -------
below is the linker command that reports liking error.

/scratch/oe/efika/cross/ppc603e/lib/gcc/powerpc-oe-linux/4.5.0/crtend.o: In
function `__do_global_ctors_aux':
crtstuff.c:(.text+0xc): undefined reference to `_savegpr_31'
collect2: ld returned 1 exit status

as we can see the failure is seen in crtend.o and in the linking order libgcc
is specified before crtend.o therefore it does not pick the required object
from
libgcc.a if I add -lgcc after crtend.o then it links successfully.

/scratch/oe/efika/cross/ppc603e/bin/powerpc-oe-linux-gcc -nostdlib
-nostartfiles -o
/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/posix/getconf
 -Wl,-dynamic-linker=/lib/ld.so.1   -Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both
/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/csu/crt1.o
/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/csu/crti.o
`/scratch/oe/efika/cross/ppc603e/bin/powerpc-oe-linux-gcc -mcpu=603e
-mhard-float --print-file-name=crtbegin.o`
/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/posix/getconf.o

-Wl,-rpath-link=/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/math:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/elf:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/dlfcn:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/nss:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/nis:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/rt:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/resolv:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/crypt:/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/nptl
/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/libc.so.6
/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/libc_nonshared.a
-lgcc `/scratch/oe/efika/cross/ppc603e/bin/powerpc-oe-linux-gcc -mcpu=603e
-mhard-float --print-file-name=crtend.o`
/scratch/oe/efika/work/ppc603e-oe-linux/eglibc-2.11-r10.4/build-powerpc-oe-linux/csu/crtn.o


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (5 preceding siblings ...)
  2010-04-30  4:14 ` raj dot khem at gmail dot com
@ 2010-04-30  4:34 ` raj dot khem at gmail dot com
  2010-04-30  4:55 ` raj dot khem at gmail dot com
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: raj dot khem at gmail dot com @ 2010-04-30  4:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from raj dot khem at gmail dot com  2010-04-30 04:34 -------
calls to _savegpr_31 and _restgpr_31_x are only generated when compiling libgcc
with -Os same compiled with -O2 it does not emit the calls

here is a reduced testcase from crtstuff.c compile it will -Os and then with
-O2 

typedef void (*func_ptr) (void);
static func_ptr __CTOR_END__[1]
  __attribute__((section(".ctors"), aligned(sizeof(func_ptr))))
  = { (func_ptr) 0 };
static void __attribute__((used))
__do_global_ctors_aux (void)
{
  func_ptr *p;
  for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
    (*p) ();
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (4 preceding siblings ...)
  2010-04-20 23:02 ` patrick at motec dot com dot au
@ 2010-04-30  4:14 ` raj dot khem at gmail dot com
  2010-04-30  4:34 ` raj dot khem at gmail dot com
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: raj dot khem at gmail dot com @ 2010-04-30  4:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from raj dot khem at gmail dot com  2010-04-30 04:13 -------
I have similar problem when building glibc for 603e. When I dump libgcc.a
then it shows these symbols but they are hidden

crtsavfpr.o:     file format elf32-powerpc
00000000 g     F .text  0000004c .hidden _savefpr_14
00000004 g     F .text  00000048 .hidden _savefpr_15
00000008 g     F .text  00000044 .hidden _savefpr_16
0000000c g     F .text  00000040 .hidden _savefpr_17
00000010 g     F .text  0000003c .hidden _savefpr_18
00000014 g     F .text  00000038 .hidden _savefpr_19
00000018 g     F .text  00000034 .hidden _savefpr_20
0000001c g     F .text  00000030 .hidden _savefpr_21
00000020 g     F .text  0000002c .hidden _savefpr_22
00000024 g     F .text  00000028 .hidden _savefpr_23
00000028 g     F .text  00000024 .hidden _savefpr_24
0000002c g     F .text  00000020 .hidden _savefpr_25
00000030 g     F .text  0000001c .hidden _savefpr_26
00000034 g     F .text  00000018 .hidden _savefpr_27
00000038 g     F .text  00000014 .hidden _savefpr_28
0000003c g     F .text  00000010 .hidden _savefpr_29
00000040 g     F .text  0000000c .hidden _savefpr_30
00000044 g     F .text  00000008 .hidden _savefpr_31
crtsavgpr.o:     file format elf32-powerpc
00000000 g     F .text  0000004c .hidden _savegpr_14
00000004 g     F .text  00000048 .hidden _savegpr_15
00000008 g     F .text  00000044 .hidden _savegpr_16
0000000c g     F .text  00000040 .hidden _savegpr_17
00000010 g     F .text  0000003c .hidden _savegpr_18
00000014 g     F .text  00000038 .hidden _savegpr_19
00000018 g     F .text  00000034 .hidden _savegpr_20
0000001c g     F .text  00000030 .hidden _savegpr_21
00000020 g     F .text  0000002c .hidden _savegpr_22
00000024 g     F .text  00000028 .hidden _savegpr_23
00000028 g     F .text  00000024 .hidden _savegpr_24
0000002c g     F .text  00000020 .hidden _savegpr_25
00000030 g     F .text  0000001c .hidden _savegpr_26
00000034 g     F .text  00000018 .hidden _savegpr_27
00000038 g     F .text  00000014 .hidden _savegpr_28
0000003c g     F .text  00000010 .hidden _savegpr_29
00000040 g     F .text  0000000c .hidden _savegpr_30
00000044 g     F .text  00000008 .hidden _savegpr_31


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (3 preceding siblings ...)
  2010-04-20  8:52 ` rguenth at gcc dot gnu dot org
@ 2010-04-20 23:02 ` patrick at motec dot com dot au
  2010-04-30  4:14 ` raj dot khem at gmail dot com
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: patrick at motec dot com dot au @ 2010-04-20 23:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from patrick at motec dot com dot au  2010-04-20 23:01 -------
Running

powerpc-eabispe-objdump -t `powerpc-eabispe-gcc --print-libgcc-file-name` |grep
_save

shows no symbols so I assume something in the build process has gone wrong.

Do you need me to attach my libgcc.a or any object dump output?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
                   ` (2 preceding siblings ...)
  2010-04-20  1:28 ` patrick at motec dot com dot au
@ 2010-04-20  8:52 ` rguenth at gcc dot gnu dot org
  2010-04-20 23:02 ` patrick at motec dot com dot au
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-20  8:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-04-20 08:52 -------
libgcc.a should provide these and libgcc.so should be a linker script.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
  2010-04-20  0:00 ` [Bug target/43810] " pinskia at gcc dot gnu dot org
  2010-04-20  0:03 ` patrick at motec dot com dot au
@ 2010-04-20  1:28 ` patrick at motec dot com dot au
  2010-04-20  8:52 ` rguenth at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: patrick at motec dot com dot au @ 2010-04-20  1:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patrick at motec dot com dot au  2010-04-20 01:28 -------
I've just done a fresh gcc build and crtsavgpr.asm crtresgpr.asm and friends
definitely aren't being assembled.

Am I expected to provide these functions in the library layer of my operating
system?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
  2010-04-20  0:00 ` [Bug target/43810] " pinskia at gcc dot gnu dot org
@ 2010-04-20  0:03 ` patrick at motec dot com dot au
  2010-04-20  1:28 ` patrick at motec dot com dot au
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: patrick at motec dot com dot au @ 2010-04-20  0:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patrick at motec dot com dot au  2010-04-20 00:02 -------
Happens while linking my program.

Where in libc are they intended to live? Looking through the source it looks
like they may be part of libgcc.a but for powerpc-eabispe they aren't built.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x
  2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
@ 2010-04-20  0:00 ` pinskia at gcc dot gnu dot org
  2010-04-20  0:03 ` patrick at motec dot com dot au
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-20  0:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-04-20 00:00 -------
Those functions are part of the ABI and should be provided by your libc.
Does this error happen while you are linking your program or while building
GCC?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-03-22 23:40 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43810-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:18 ` [Bug target/43810] [4.5 Regression] linking results in undefined references to _savegpr_* _restgpr_*_x rguenth at gcc dot gnu.org
2010-12-20 12:22 ` wd at denx dot de
2011-02-15  0:57 ` nitin.a.kamble at intel dot com
2011-02-23 18:10 ` froydnj at gcc dot gnu.org
2011-02-23 18:25 ` froydnj at gcc dot gnu.org
2011-03-23  0:31 ` ilya.yanok at gmail dot com
2010-04-19 23:57 [Bug target/43810] New: " patrick at motec dot com dot au
2010-04-20  0:00 ` [Bug target/43810] " pinskia at gcc dot gnu dot org
2010-04-20  0:03 ` patrick at motec dot com dot au
2010-04-20  1:28 ` patrick at motec dot com dot au
2010-04-20  8:52 ` rguenth at gcc dot gnu dot org
2010-04-20 23:02 ` patrick at motec dot com dot au
2010-04-30  4:14 ` raj dot khem at gmail dot com
2010-04-30  4:34 ` raj dot khem at gmail dot com
2010-04-30  4:55 ` raj dot khem at gmail dot com
2010-04-30  6:57 ` patrick at motec dot com dot au
2010-05-11 13:35 ` rguenth at gcc dot gnu dot org
2010-05-19 12:35 ` rguenth at gcc dot gnu dot org
2010-05-19 16:26 ` raj dot khem at gmail dot com
2010-05-19 22:58 ` patrick at motec dot com dot au
2010-07-22  8:48 ` rguenth at gcc dot gnu dot org
2010-07-31  9:35 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).