|
From: Nicholas N. <nj...@ca...> - 2004-08-05 13:33:31
|
On Thu, 5 Aug 2004, Oswald Buddenhagen wrote: >> so stage1 should find this place, and then load stage2 in the found >> place (ignoring where the elf info says it should go), and tell stage2 >> where it is loaded by via the auxv... >> > yup, but then stage2 has to be compiled with -fPIC. Urgh, that's not so good. Or maybe it's not a problem -- what's the slow-down for PIC usually like? Does anyone know if it would it affect any other part of Valgrind's workings, eg. symbol redirections? I guess I can try and see what happens. We use PIC for libpthread.so and a few other Valgrind files already. Another possibility is to build multiple versions of Valgrind, and choose the most appropriate one. That's less flexible though. Or Valgrind could do a configure-time test to find out what the configuration is, and hope that never changes... N |