This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PPC libgcc compatibility


Hi,

the appended patch implements most of the libgcc routines that may cause 
broken binaries if a gcc-3.1 compiled glibc is installed. The symbols fixed 
are (copied from gcc/libgcc2.c):

__ashldi3
__ashrdi3
__lshrdi3

__cmpdi2
__ucmpdi2

__divdi3
__moddi3
__udivdi3
__umoddi3

__fixdfdi
__fixsfdi
__fixunsdfdi
__fixunssfdi

The symbols not (yet? I don't know if I want to go down the float road) fixed:

__floatdidf
__floatdisf

Note that the list of symbols seems to be complete, I got reports of fully 
installed RedHat and Suse systems and merged them together.

The other thing missing are all soft-float libgcc symbols. My guess is that 
these happen only in 100% user controlled environments where you either do 
full upgrades of everything or where using LD_PRELOAD=/lib/libgcc_s.so.1 or 
/etc/ld.so.preload is no issue.

BTW, in the light of the gcc-3.1 release, these 2 patches should be installed 
on the branch to cut down the number of warnings:

2001-11-29  Ulrich Drepper  <drepper@redhat.com>

        * posix/regex.h: Define __restrict_arr correctly.

2001-11-29  Andreas Jaeger  <aj@suse.de>

        * sysdeps/generic/abort.c: Include libioP.h for
        _IO_flush_all_lockp prototype.

Franz.


	* sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
	shdi3, fixdfdi, fixsfdi in csu dir.
	(shared-only-routines): Likewise.
	* sysdeps/wordsize-32/cmpdi2.c: New file.
	* sysdeps/wordsize-32/shdi3.c: New file.
	* sysdeps/wordsize-32/fixdfdi.c: New file.
	* sysdeps/wordsize-32/fixsfdi.c: New file.
	* sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
	__ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
	__fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.

Attachment: glibc-libgcc-compat-ppc.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]