[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185166: crtsavres.o causes grief with symbol versioning on powerpc



Package: gcc-3.2
Version: 1:3.2.3-0pre5
Severity: normal

On powerpc, for whatever reason, gcc includes a whole bunch of
functions in generated objects like this (small snippet):
00001900 g    DF .text	0000003c  Base        _restgpr_18
000019d8 g    DF .text	00000014  Base        _restgpr_31_x
00001920 g    DF .text	0000001c  Base        _restgpr_26
0000188c g    DF .text	00000018  Base        _savegpr_27
00001918 g    DF .text	00000024  Base        _restgpr_24
000019b8 g    DF .text	00000034  Base        _restgpr_23_x

These will appear as defined symbols in DSOs; if you then apply a
linker script which versions all the symbols in the object, you get
this sort of stuff:
/usr/bin/ld: libbaz.so.1: undefined versioned symbol name _savegpr_15@@BAR2

Either these functions should be kept internal to the object by gcc (ie,
they never get into the symbol table) or the linker needs to know that
it should hide and/or not version them.

[In combination with a glibc bug on hppa, this makes the use of
versioned symbols unnecessarily hard.]

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cyclone 2.4.21-pre4-ac4 #30 Wed Feb 12 21:40:14 GMT 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcc-3.2 depends on:
ii  binutils                2.13.90.0.18-1.2 The GNU assembler, linker and bina
ii  cpp-3.2                 1:3.2.3-0pre5    The GNU C preprocessor
ii  gcc-3.2-base            1:3.2.3-0pre5    The GNU Compiler Collection (base 
ii  libc6                   2.3.1-14         GNU C Library: Shared libraries an
ii  libgcc1                 1:3.2.3-0pre5    GCC support library

-- no debconf information


-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ | Dept. of Computing,
 `. `'                          | Imperial College,
   `-             -><-          | London, UK

Attachment: pgpvt7vl4vUwi.pgp
Description: PGP signature


Reply to: