[coldfire-gnu-discuss] How to relocate GLOBAL_OFFSET_TABLE from RAM into ROM
Nathan Sidwell
nathan at codesourcery.com
Sat Feb 10 17:17:51 UTC 2007
Игорь wrote:
> I use MCF5213 with 32Kb of SRAM and i was very surprised that function addresses table linked into SRAM. If i understand correctly, this behaviour may be changed by modifying the linker script, i.e. by move the string "*(.got.plt) *(.got)" from .data into .text. But when i do it, i have many overlap errors. Can someone provide any suggestions?
You need to change the contents of the MEMORY section of the file. set the ram
address to something else.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the coldfire-gnu-discuss
mailing list