diff --git a/firmware/target/arm/as3525/app.lds b/firmware/target/arm/as3525/app.lds index c2d3ed83ee..bf8e68f048 100644 --- a/firmware/target/arm/as3525/app.lds +++ b/firmware/target/arm/as3525/app.lds @@ -40,6 +40,7 @@ SECTIONS .text : { + _loadaddress = .; _textstart = .; *(.text) *(.text*) @@ -70,23 +71,6 @@ SECTIONS _initdata_end =.; - .stack (NOLOAD) : - { - *(.stack) - stackbegin = .; - . += 0x2000; - stackend = .; - } > DRAM - - .bss (NOLOAD) : - { - _edata = .; - *(.bss*) - *(COMMON) - . = ALIGN(0x4); - _end = .; - } > DRAM - .vectors IRAMORIG: { _vectors_start = .; @@ -116,6 +100,23 @@ SECTIONS _iramcopy = LOADADDR(.iram); + .stack (NOLOAD) : + { + *(.stack) + stackbegin = .; + . += 0x2000; + stackend = .; + } > DRAM + + .bss (NOLOAD) : + { + _edata = .; + *(.bss*) + *(COMMON) + . = ALIGN(0x4); + _end = .; + } > DRAM + .audiobuf (NOLOAD) : { . = ALIGN(4);