[PATCH] Fixup PPC symbol versioning for libgcc symbols
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Fri Aug 16 05:02:00 GMT 2002
Hi,
phew, this was hard, but after finding my way thru a maze of binutils bugs and
misinformations, here is finally a patch that does what we want on PPC,
namely not to export any libgcc symbols from glibc with linktime reference,
yet keeping the backwards compatibility with shared libs compiled against a
pre-.hidden libgcc. I've attached patches for mainline and 2-2, both tested
with gcc-2.95.4 and gcc-3.[12]. I also rebuilt loads of packages against it
without problems.
When building gcc-3 against a fixed glibc, binutils-2.13.90.0.4 or later is
needed, otherwise libgcc_s may contain unversioned symbols. I will add a
platform statement to the gcc instructions soon.
Uli, sorry for the number iterations on this issue, but I was new to symbol
versioning...
Thanks to HJ for fixing all these binutils oddities!
Franz.
* sysdeps/powerpc/Makefile: Add HAVE_DOT_HIDDEN to CPPFLAGS for
divdi3.c and libgcc-compat.S.
* sysdeps/powerpc/libgcc-compat.c: Delete, optimize to ...
* sysdeps/powerpc/libgcc-compat.S: New file.
* sysdeps/powerpc/divdi3.c: New file, version and hide symbols of the generic
version.
* sysdeps/powerpc/Versions: Add forgotten symbols.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-libgcc-compat-ppc-9.patch
Type: text/x-diff
Size: 10001 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020816/34173d23/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-libgcc-compat-ppc-9-2_2.patch
Type: text/x-diff
Size: 10055 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020816/34173d23/attachment-0001.bin>
More information about the Libc-alpha
mailing list