This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Reloc info of static functions
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: pradeep tumati <ptumati at yahoo dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 16 Oct 2003 15:38:52 +0930
- Subject: Re: Reloc info of static functions
- References: <20031016035942.22898.qmail@web13901.mail.yahoo.com>
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