This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: as: redefinition of relocatable items fails


On Wed, Nov 24, 2004 at 04:37:50PM +0100, Albert van der Horst wrote:
>     .equ cannot handle redefinition for relocatable values.

True.  Not trivial to fix, unfortunately.  You'd need to keep old
definitions of symbols around for relocations.  Something like:
- Add an old_def pointer to struct symbol, and keep old definitions on
  that chain.
- Modify all code that touches symbols to look in the old_def chain too,
  eg. symbol resolution.
- Do something special when writing relocations if an old_def is used
  and not converted to a section symbol.  It might work to just use the
  current symbol definition with an addend.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]