RE: ld --wrap option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Thursday, December 12, 2013 6:03 PM
To: Greg Hopkins
Cc: gcc-help@xxxxxxxxxxx
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





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux