It turns out that "-uh_errno" alone produces the error (at least on ppc, amd64)
ld -uh_errno -o foo.so ./libc6/lib/libc.so.6 on i386 and m68k it does not segfault. looks like it complains because you try to add a new definition for an existing TLS symbol which is not TLS. Of all the _many_ symbols passed to ld during library reduction, it turns out that h_errno errno __resp cause the segfault; all of them are TLS. regards, Davide
signature.asc
Description: Digital signature