wrap function and its caller in the same object file with ld ?

Michael Hennebry hennebry@web.cs.ndsu.nodak.edu
Mon Apr 7 20:35:00 GMT 2008


On Mon, 7 Apr 2008, Ian Lance Taylor wrote:
> As you probably know, this is a documented restriction on --wrap.  The
> problem is that on some targets the assembler will fully resolve the
> reference to the wrapped function.  When that happens, there is
> nothing the linker can do.  You have to get the assembler to change
> its behaviour.

Or, if one is bold, edit the compiler output with a script.

Would putting the referees into a distinct
section defeat resolution by assembler?

-- 
Michael   hennebry@web.cs.ndsu.NoDak.edu
"Those parts of the system that you can hit with a hammer (not advised)
are called Hardware;  those program instructions that you can only
curse at are called Software."



More information about the Binutils mailing list