|
From: Nicholas N. <nj...@ca...> - 2004-06-04 07:59:36
|
On Fri, 4 Jun 2004, Tom Hughes wrote: > > I guess V's libpthread.so isn't overriding the statically linked system > > one. > > Well it won't - if you're statically linked against libpthread then > the dynamic linker won't try and load the dynamic version because it > won't be listed as a dependency and all the calls to the functions in > it will have been resolved anyway. > > I wasn't sure it would work even without valgrind because of the way > libpthread normally uses dynamic linker tricks to override functions > in the main C library but I guess there must be weak symbol tricks or > something to make it work in static links. Could V use its interception mechanism here? Likewise for malloc() et al for statically linked binaries? N |