5 Commits

Author SHA1 Message Date
fenugrec
dfdcb38336 ldscripts : move init/fini_array sections to flash
startup files generated by stm32cubeIDE do this. Mostly useless since
none of our code uses that; the linking step gets rid of those sections
anyway.

objdump before:
200000a8 l       .data	00000000 __fini_array_end
200000a4 l       .data	00000000 __fini_array_start
200000a4 l       .data	00000000 __init_array_end
200000a0 l       .data	00000000 __preinit_array_end
200000a0 l       .data	00000000 __init_array_start
200000a0 l       .data	00000000 __preinit_array_start

after:
0800419c l       .fini_array	00000000 __fini_array_end
08004198 l       .fini_array	00000000 __fini_array_start
08004198 l       .init_array	00000000 __init_array_end
08004194 l       .preinit_array	00000000 __preinit_array_end
08004194 l       .init_array	00000000 __init_array_start
08004194 l       .preinit_array	00000000 __preinit_array_start
2022-12-05 13:47:01 -05:00
fenugrec
b3814f5f12 ldscripts : unmark RAM section as executable
It has no business being marked "rwx". Related to #106 on GH, but
doesn't fix the "LOAD segment with RWX permissions" warning.
2022-11-23 10:23:19 -05:00
fenugrec
a0a333ae13 ldscripts: remove .jcr sections 2022-11-17 14:06:23 -05:00
Marc Kleine-Budde
59896b65fd startup: get rid of zero table and fix copy_table 2022-11-17 12:50:07 -05:00
fenugrec
ac24146664 cmake : generate ldscripts automatically
99% of the ldscripts is identical, which makes it a pain to maintain.

Now we use cmake 'configure_file()' with a handful of variables to
produce each ldscript from a common template.
2022-11-17 12:40:26 -05:00