Skip to contentSkip to conversation

hppa libgcc-compat

PATCH New Carlos O'Donell 1 participant 1 message Aug 18, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hppa libgcc-compat

libc-alpha,

Seeing Lu's post about libgcc-compat reminded me that I should submit our version.

We have been using this patch to fix the leaked __clz_tab symbol from libgcc. Attached is the required additions to our Makefile, Dist, and Versions.

This patch was produced by Randolph Chung, many thanks!

Cheers,
Carlos.

---
 sysdeps/hppa/Dist            |    1
 sysdeps/hppa/Makefile        |   11 +++++
 sysdeps/hppa/Versions        |    5 ++
 sysdeps/hppa/libgcc-compat.c |   43 +++++++++++++++++++++++
 4 files changed, 60 insertions(+)

---

2003-02-25 Randolph Chung <[email protected]>

* sysdeps/hppa/Makefile: Include compat code in build.
* sysdeps/hppa/libgcc-compat.c: New file.
* sysdeps/hppa/Dist: Add libgcc-compat.c
* sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.

sysdeps/hppa/Makefile renamed from sysdeps/hppa/Makefile.orig +11 -0
@@ -31,3 +31,14 @@
 dl-routines += dl-symaddr dl-fptr
 rtld-routines += dl-symaddr dl-fptr
 endif
+
+ifeq ($(subdir),csu)
+ifeq (yes,$(build-shared))
+# Compatibility
+ifeq (yes,$(have-protected))
+CPPFLAGS-libgcc-compat.c = -DHAVE_DOT_HIDDEN
+endif
+sysdep_routines += libgcc-compat
+shared-only-routines += libgcc-compat
+endif
+endif
sysdeps/hppa/libgcc-compat.c +43 -0

43 lines not on this page · raw message

sysdeps/hppa/Dist renamed from sysdeps/hppa/Dist.orig +1 -0
@@ -1,2 +1,3 @@
+libgcc-compat.c
 dl-symaddr.c
 dl-fptr.c
sysdeps/hppa/Versions renamed from sysdeps/hppa/Versions.orig +5 -0
@@ -5,3 +5,8 @@
     _dl_function_address;
   }
 }
+libc {
+  GLIBC_2.2 {
+    __clz_tab;
+  }
+}