From c8f3e6bcf0b3c1084370d5de22acf5cf38773881 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 20 Aug 2002 21:27:26 +0000 Subject: Fix ABI compatibility with libc compiled with old tools on powerpc. Changes contributed by Franz Sirl and Jack Howarth . * sysdeps/powerpc/Makefile [$(have-protected) = yes] (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables, pass -DHAVE_DOT_HIDDEN for these files. * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf, __floatdisf. * sysdeps/powerpc/divdi3.c: New file. * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ... * sysdeps/powerpc/libgcc-compat.c: ... this, file removed. --- sysdeps/powerpc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps/powerpc/Makefile') diff --git a/sysdeps/powerpc/Makefile b/sysdeps/powerpc/Makefile index ce8fa7c175..0737f6f2d3 100644 --- a/sysdeps/powerpc/Makefile +++ b/sysdeps/powerpc/Makefile @@ -37,6 +37,10 @@ CFLAGS-gmon-start.o = -G0 endif ifeq (yes,$(build-shared)) # Compatibility +ifeq (yes,$(have-protected)) +CPPFLAGS-divdi3.c = -DHAVE_DOT_HIDDEN +CPPFLAGS-libgcc-compat.S = -DHAVE_DOT_HIDDEN +endif sysdep_routines += divdi3 libgcc-compat shared-only-routines += divdi3 libgcc-compat endif -- cgit v1.2.3