This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: reducing reloc syms to section syms
- From: Ian Lance Taylor <ian at airs dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com
- Date: 07 May 2002 02:00:54 -0700
- Subject: Re: reducing reloc syms to section syms
- References: <20020507073955.GA3698@bubble.sa.bigpond.net.au>
Alan Modra <amodra@bigpond.net.au> writes:
> Is there any benefit in reducing just some relocs using a given symbol
> to the section symbol, and not others?
It's slightly faster to compute a relocation against a section symbol,
since it doesn't require a symbol lookup and doesn't require the
various cases which can arise with a symbol. This is particularly
true if the relocation becomes a dynamic relocation.
Ian