ld --wrap option

Greg Hopkins Greg.Hopkins@csr.com
Fri Dec 13 12:51:00 GMT 2013


Thanks, Ángel.  I can see how a "#define fn __wrap_fn", coupled with a "#undef fn" at fn definition would do the trick.

Regards,
Greg

-----Original Message-----
From: Ángel González [mailto:keisial@gmail.com] 
Sent: Thursday, December 12, 2013 6:03 PM
To: Greg Hopkins
Cc: gcc-help@gcc.gnu.org
Subject: Re: ld --wrap option

On 12/12/13 19:28, Greg Hopkins wrote:
> Resending due to urgent need.  Please help if you can.  Thank you.
>
> Regards,
> Greg
If you are trying to wrap the funcion from the same file where it's defined, there are a few easy tricks to wrap it, from the original function to #defining the name to the wrapper.
Although the best solution coulb be to move it to a separate file.




 To report this email as spam click https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== .


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog



More information about the Gcc-help mailing list