h8300-elf/rtems bug in linker scripts

Alan Modra amodra@bigpond.net.au
Tue Aug 15 11:06:00 GMT 2006


On Mon, Aug 14, 2006 at 04:11:34PM -0500, Joel Sherrill wrote:
> It looks to me like a ldscript used to produce a relocatable file
> should not introduce symbols in this manner.  Is this correct?

Yes.

> What's the right way to fix this?  I am unsure of what to edit
> in the original source to get rid of these symbols in relocatables.

Wrap the assignment in ${RELOCATING+ }.  Do the same for the vma on
.tinydata and lma on .tinybss.  emulparams/h8300elf.sh

> Do they even need to be in executables?

I don't know enough about the ABI to answer that.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list