Undefine a library function

Ben Elliston bje@au1.ibm.com
Mon Dec 11 23:14:00 GMT 2006


On Fri, 2006-12-08 at 09:42 +0530, Niklaus wrote:

>  Like the #undef for macros , do we have a way for undefining a
> library function like say memset. Do we have any way(like linker) so
> that my function memset(with different arguments) are used everywhere
> instead of library function memset.

Yes.  Take a look in the linker manual for the --wrap option.

Ben




More information about the Binutils mailing list