|
From: Nicholas N. <nj...@ca...> - 2003-09-25 10:27:57
|
On Thu, 25 Sep 2003, Olly Betts wrote: > > It now compiles and runs, but Valgrind doesn't get invoked. > > I guess it's because the .init section in coregrind/vg_startup.S doesn't > > get called. Normally the "-z initfirst" flag is given to the linker when > > building valgrind.so... any suggestions how/when to use it when building > > libvalgrind.a? > > An untested idea - try partially linking vg_startup.o so that you have a > linker invocation to pass "-z initfirst" to: > > <assemble vg_startup.S to vg_startup.o> > ld -r -z initfirst vg_startup.o -o vg_startup-tmp.o > mv vg_startup-tmp.o vg_startup.o Hmm, no luck. Maybe that's not enough, or maybe the 'initfirst' isn't the problem (or isn't the only problem)? N |