help needed for defining hppa __clz_tab gcc-compat symbol
Hi all,
I've been working with Carlos to try to get the libgcc-compat patch put
together for hppa. Somehow it's not quite working. Hope someone can help
:)
The missing symbol in our case is __clz_tab. This is an array instead of
a function like the case for other archs.
I've created a libgcc-compat.c that has something like this:
#if SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_2_6)
symbol_version (__clz_tab_internal, __clz_tab, GLIBC_2.2);
typedef unsigned int UQItype __attribute__ ((mode (QI)));
static const UQItype __clz_tab_internal[] = { ... }
#endif
The resulting libc.so.6 has:
legolas[8:03] obj% readelf -a ./libc.so.6|grep clz
94: 0011f760 256 OBJECT LOCAL DEFAULT 13 __clz_tab_internal
95: 0011f760 256 OBJECT LOCAL DEFAULT 13 __clz_tab@GLIBC_2.2
3695: 00134df0 256 OBJECT LOCAL HIDDEN 13 __clz_tab
but this still triggers errors:
legolas[8:05] obj% LD_LIBRARY_PATH=`pwd` ldd /usr/src/chroot-stable/usr/bin/wget
libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40029000)
libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4006c000)
libdl.so.2 => /lib/libdl.so.2 (0x4015b000)
libc.so.6 => /usr/src/glibc/glibc-package/hppa-linux/obj/libc.so.6 (0x4016e000)
/lib/ld.so.1 => /lib/ld.so.1 (0x40000000)
legolas[8:05] obj% LD_LIBRARY_PATH=`pwd` /usr/src/chroot-stable/usr/bin/wget
/usr/src/chroot-stable/usr/bin/wget: relocation error: /usr/src/chroot-stable/usr/bin/wget: undefined symbol: __clz_tab
What am i missing?
thanks
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
Reply to: