[mercury-users] Re: Valgrind

Nicholas Nethercote njn25 at cam.ac.uk
Fri Mar 28 20:06:11 AEDT 2003


On Fri, 28 Mar 2003, Ondrej Bojar wrote:

> I've installed valgrind, but it doesn't do anything when used on the
> Mercury binary, it gets never called. (It works on plain C program.)

> gcc -s -static -Wl-defsym -Wl_DYNAMIC=0 -o hello hello_init.o hello.o

Ah, Valgrind doesn't work on static binaries, it relies on hijacking the
dynamic linker to gain control.  Can Mercury programs be linked
non-statically?  Reliance on a single shared object is enough.

N
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list