jh-branch
Alexander E. Patrakov
patrakov at ums.usu.ru
Fri Aug 10 22:24:08 MDT 2007
Greg Schafer wrote:
> Alexander E. Patrakov wrote:
>
>
>> 1) FSF binutils 2.17 don't recognize 64-bit libc.so.6 on Debian Lenny
>> x86_64
>>
>
> Yes, but why? This is the kind of debugging I'm talking about.
GNU hash. Found it by creating several dummy shared libraries of my own:
echo "foo(){}" | gcc -fPIC -x c -m64 -shared -o foo.so -
echo "foo(){}" | gcc -Wl,--hash-style=gnu -fPIC -x c -m64 -shared -o
foo1.so -
echo "foo(){}" | gcc -Wl,--hash-style=sysv -fPIC -x c -m64 -shared -o
foo2.so -
(Debian defaults to --hash-style=both).
Of these libraries, the new ld recognizes only foo2.so. Is this enough
debugging?
Anyway, libc.so.6 is compiled with --hash-style=both, and we can't add
support for it into binutils-2.17 - so we shouldn't link anything
against the host libc with new ld. Thus, we need to cross-compile the
first few packages. As I said, upgrading binutils also works, but it is
a poor solution.
--
Alexander E. Patrakov
More information about the lfs-dev
mailing list