Re: Status update hppa - glibc 2.2.92 (Problems with __divdi3)
In reference to a message from Jeff Bailey, dated Sep 02:
> On Mon, Sep 02, 2002 at 07:38:51PM -0400, Carlos O'Donell wrote:
>
> > objdump -t /mnt/flaire/src/glibc-upstream-cvs/libc-build/libc.so.6 | grep divdi3
> > 001173d4 l F .text 00000028 __udivdi3
> > 00000000 *UND* 00000000 __divdi3_internal
> >
> > It's clearly not there :}
there we go...
tausq@a500:~/src/glibc-package/hppa-linux/obj$ nm libc.so|grep divdi3
000217f4 t __divdi3
000217f4 t __divdi3_internal
00021924 t __udivdi3
patch attached.
together with the two patches carlos posted i was able to build
glibc on hppa using the packaging stuff in cvs.
randolph
#! /bin/sh -e
# DP: pull in definition of divdi3_internal for hppa
if [ $# -ne 2 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch -d "$2" -f --no-backup-if-mismatch -p1 < $0;;
-unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p1 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
esac
exit 0
--- glibc-2.2.92/sysdeps/hppa/Makefile.orig 2002-09-02 21:38:16.000000000 -0700
+++ glibc-2.2.92/sysdeps/hppa/Makefile 2002-09-02 21:38:41.000000000 -0700
@@ -26,6 +26,14 @@
CFLAGS-malloc.c += -DMALLOC_ALIGNMENT=16
endif
+ifeq ($(subdir),csu)
+ifeq (yes,$(build-shared))
+# Compatibility
+sysdep_routines += divdi3
+shared-only-routines += divdi3
+endif
+endif
+
ifeq ($(subdir),elf)
dl-routines += dl-symaddr dl-fptr
rtld-routines += dl-symaddr dl-fptr
Reply to: