ARM mapping symbols
Bruno De Bus
bdebus@elis.ugent.be
Mon Mar 8 18:17:00 GMT 2004
On Mon, 8 Mar 2004, Nick Clifton wrote:
> Hi Bruno,
>
> >> > The last assembled section is often a data section, so the mapping
> >> > symbol is $d. Then arm_cleanup is called and the literal pool(s)
> >> > is(/are) written. As the last symbol already was $d, no new symbol
> >> > is added...
> >>
> >> Ok - but this is easily fixed by calling arm_elf_change_section()
> >> after calling subseg_set() in arm_cleanup(). Then the correct-for-
> >> that-section mapping symbol will be emitted, which can then be changed
> >> by your patch to s_ltorg().
> >
> > I might be wrong again, but I believe this will add both a $d and a
> > $a symbol?
>
> Yes - is this a problem ? I know that it is not optimal, but I
> thought that it might be a simpler "quick hack" that adding a 'forced'
> argument to mapping_state().
I mean a $d and $a symbol with the same address.... That would be quite
difficult to handle.... Especially if it happened more than once.....
Bruno
> Cheers
> Nick
>
>
More information about the Binutils
mailing list