espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.76k stars 743 forks source link

for code in RAM use different section than .data #2458

Closed fanoush closed 8 months ago

fanoush commented 8 months ago

fixes newer gcc compilers, inspired by https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103698#c4

as discussed in #2455

WIP, maybe not all linker files are fixed

gfwilliams commented 8 months ago

Thanks for this! Actually I'm pretty sure I gave up on running the code from RAM - the idea was the bootloader could update itself but I never got it working well and it seemed too dangerous.

So we could probably just remove all of the __attribute__( ( long_call, section(".data") ) ) in the bootloader...

Not sure what you think?

fanoush commented 8 months ago

So we could probably just remove all of the attribute( ( long_call, section(".data") ) ) in the bootloader...

Yes, makes sense, so then just forget about this PR and close it :-)