problems with ld --wrap : Help!

William Gacquer wgacquer@ubisoft.fr
Tue Sep 5 04:02:00 GMT 2000


Hello
	I am attempting to wrap malloc using "ld --wrap malloc" as in the ld
documentation. 
	but I always get a "__real_malloc undeclared" error message.

	In fact, my __wrap_malloc does not call __real_malloc at all. 
	__real_malloc is just called on time at the begining of the run, to
allocate a big block. But this call is not resolved.
	What may be wrong?

	My ld is "GNU ld version 2.9-ee-991111 ( with BFD 2.9-ee-991111).

	William

________________
William Gacquer
Rayman 2 PS2 team - Ubi Simulations - Annecy France




More information about the Binutils mailing list