Reloc info of static functions

Alan Modra amodra@bigpond.net.au
Thu Oct 16 06:32:00 GMT 2003


On Wed, Oct 15, 2003 at 08:59:42PM -0700, pradeep tumati wrote:
> Is there any specific reason for not including the
> relocation information? 

Yes.  It's not needed since static functions can't be overridden by
other definitions, and calls on x86 are pc-relative.

> I am thinking of modifying the gas assembler source code.

You'll need to change TC_FORCE_RELOCATION, and maybe tc_fix_adjustable
if you want to keep the original symbol.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list