public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: as: redefinition of relocatable items fails
       [not found] <20041124153750.GA9576@spenarnc.xs4all.nl>
@ 2004-11-24 22:27 ` Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2004-11-24 22:27 UTC (permalink / raw)
  To: Albert van der Horst; +Cc: bug-binutils, binutils

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-24 22:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20041124153750.GA9576@spenarnc.xs4all.nl>
2004-11-24 22:27 ` as: redefinition of relocatable items fails Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).