h8300-elf/rtems bug in linker scripts

Joel Sherrill joel.sherrill@oarcorp.com
Tue Aug 15 17:14:00 GMT 2006


Thanks for the suggestion.  It seems to have worked.  I have attached
the patch.

I think this should be committed to the 2.17 branch and head.

--joel

2006-08-15  Joel Sherrill <joel.sherrill@oarcorp.com>

        emulparams/h8300elf.sh: _tinydata should not be placed in 
relocatables.

Alan Modra wrote:
> 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.
>
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: h8300-tinydata.diff
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060815/0a04ed15/attachment.bin>


More information about the Binutils mailing list