This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: wrap function and its caller in the same object file with ld ?
- From: Michael Hennebry <hennebry at web dot cs dot ndsu dot nodak dot edu>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: MickaÃl MASSON <mickael dot masson at orange-ftgroup dot com>, <binutils at sourceware dot org>
- Date: Mon, 7 Apr 2008 15:35:14 -0500 (CDT)
- Subject: Re: wrap function and its caller in the same object file with ld ?
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."