|
From: Jeremy F. <je...@go...> - 2002-10-19 00:26:20
|
On Fri, 2002-10-18 at 16:58, H. J. Lu wrote: > 1. There are supposed to be no differences between weak and strong > symbols in DSOs. I submitted a patch to glibc: > > http://sources.redhat.com/ml/libc-alpha/2001-09/msg00109.html It looks from that thread that the patch wasn't applied to 2.2. Does that mean it still needs to be applied, or has it been applied since. I really don't understand the issues here; can or explain, or is there a reference? In particular, what's DT_FILTER? Is it a mechanism for interposing symbols, or is it something else? > 2. Glibc will make sure libpthread.so will override libc.so, weak > or strong. Please file a bug if it doesn't do so. But please make > sure your libpthread has: > > # readelf -d /lib/libpthread.so.0 > ... > 0x6ffffffb (FLAGS_1) Flags: NODELETE INITFIRST > ... > > by passing "-z nodelete -z initfirst" to ld. OK, but valgrind.so is already being linked with "-z initfirst"; what happens if there are two .so files with initfirst? (It does seem to work). Thanks, J |