[M16C-ELF] : Problem accessing "constant" data that is placed in ROM.

DJ Delorie dj@redhat.com
Fri Dec 23 16:51:00 GMT 2005


> I am doing this in my own start-up code.

If you're not using my crt0.s then you REALLY need to at least look at
it and see where/how I copy all the ROM data into RAM so that you can
access it.

> However, this is not the expected behavior, especially when using
> hardware. My ".rodata" should be in ROM all the time.

You're expecting the m16c port to know how to use the LDE opcode.  It
doesn't, at least not yet.  Feel free to work on that one yourself, or
wait until I have time to work on it myself.  Until then, all the ROM
data needs to be copied to RAM.



More information about the Gcc mailing list