Category "linker-scripts"

MCU crashes when "declaring" vector table in SRAM

I have a new standard c++ project on an imx rt 1024 (an nxp chip), in which I try to move my vector table to SRAM. It fails, depending on a change I apply in th

How can I access a symbol from the linker script in my Ada code?

I am building my Ada/SPARK project using GNAT and I am using a linker script. Here is an excerpt: SECTIONS { .code : { . = ALIGN(0x4); *

LD linker script, get current position of LOAD address

In linker scripts, I can get the LMA of a section like this .got : ALIGN(4) { __global_offset_table_flash_start__ = LOADADDR(.got) ; ... } >SRAM_DTC