Tim Stitt wrote:

> The compile error is as follows...which seems to be related to your 
> comment on the preloading i.e. the source file contains preload in its 
> name:
> 
> cc  -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement 
> -fno-stack-protector   -o vgpreload_core-amd64-linux.so -nodefaultlibs 
> -shared -Wl,-z,interpose,-z,initfirst -m64 
> vgpreload_core_amd64_linux_so-vg_preloaded.o /usr/bin/ld: 
> /opt/gcc/4.3.2/snos/lib/gcc/x86_64-suse-linux/4.3.2/crtbeginT.o: 
> relocation R_X86_64_32 against `__DTOR_END__' can not be used when 
> making a shared object; recompile with -fPIC
> /opt/gcc/4.3.2/snos/lib/gcc/x86_64-suse-linux/4.3.2/crtbeginT.o: could 
> not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[3]: *** [vgpreload_core-amd64-linux.so] Error 1
> 
> Do you suggest continuing to be build Valgrind (if possible) in this 
> environment, if its functionality is going to be limited?

Yes, that's it trying to build the preload library which is used to 
intercept things like malloc in the client program.

Without the preload library, or when valgrinding static executables in 
general, malloc/free etc will not be intercepted and valgrind will not 
be able to track heap blocks.

Tom

-- 
Tom Hughes ([email protected])
http://www.compton.nu/

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to