From 264e8116b0073706246e12dd13f599e1adc326aa Mon Sep 17 00:00:00 2001 From: ligd Date: Mon, 4 Mar 2024 18:07:11 +0800 Subject: [PATCH] armv7-a/r: use _ebss as idle stack both in SMP mode or not this commit fix: 7d45afe87140fa11b9c978ba19f01f4480d49f45 which in PR: https://github.com/apache/nuttx/pull/11814 Signed-off-by: ligd --- boards/arm/a1x/pcduino-a10/scripts/sdram.ld | 18 +++++------ .../am335x/beaglebone-black/scripts/sdram.ld | 18 +++++------ .../fvp-armv8r-aarch32/scripts/dramboot.ld | 20 ++++++------ .../arm/imx6/sabre-6quad/scripts/dramboot.ld | 14 ++++---- .../arm/sama5/giant-board/scripts/dramboot.ld | 18 +++++------ boards/arm/sama5/giant-board/scripts/isram.ld | 18 +++++------ boards/arm/sama5/giant-board/scripts/uboot.ld | 18 +++++------ .../sama5/jupiter-nano/scripts/dramboot.ld | 18 +++++------ .../arm/sama5/jupiter-nano/scripts/isram.ld | 18 +++++------ .../arm/sama5/jupiter-nano/scripts/uboot.ld | 18 +++++------ .../sama5/sama5d2-xult/scripts/dramboot.ld | 18 +++++------ .../arm/sama5/sama5d2-xult/scripts/isram.ld | 18 +++++------ .../arm/sama5/sama5d2-xult/scripts/uboot.ld | 18 +++++------ .../sama5/sama5d3-xplained/scripts/ddram.ld | 18 +++++------ .../sama5/sama5d3-xplained/scripts/isram.ld | 18 +++++------ boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld | 18 +++++------ boards/arm/sama5/sama5d3x-ek/scripts/isram.ld | 18 +++++------ .../sama5/sama5d3x-ek/scripts/nor-ddram.ld | 18 +++++------ .../sama5/sama5d3x-ek/scripts/nor-isram.ld | 32 +++++++++---------- .../arm/sama5/sama5d3x-ek/scripts/pg-sram.ld | 18 +++++------ .../arm/sama5/sama5d4-ek/scripts/dramboot.ld | 18 +++++------ boards/arm/sama5/sama5d4-ek/scripts/isram.ld | 18 +++++------ boards/arm/sama5/sama5d4-ek/scripts/uboot.ld | 18 +++++------ .../tlsr8278adk80d/scripts/flash_boot.ld | 17 +++++----- .../tlsr8278adk80d/scripts/flash_boot_ble.ld | 17 +++++----- .../arm/xmc4/xmc4500-relax/scripts/flash.ld | 18 +++++------ .../arm/xmc4/xmc4700-relax/scripts/flash.ld | 18 +++++------ .../arm/xmc4/xmc4800-relax/scripts/flash.ld | 18 +++++------ 28 files changed, 258 insertions(+), 256 deletions(-) diff --git a/boards/arm/a1x/pcduino-a10/scripts/sdram.ld b/boards/arm/a1x/pcduino-a10/scripts/sdram.ld index 08df7d5772..ee083bcc4d 100644 --- a/boards/arm/a1x/pcduino-a10/scripts/sdram.ld +++ b/boards/arm/a1x/pcduino-a10/scripts/sdram.ld @@ -83,6 +83,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -93,15 +102,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/am335x/beaglebone-black/scripts/sdram.ld b/boards/arm/am335x/beaglebone-black/scripts/sdram.ld index eaa1d306bf..9ab6b5af5e 100644 --- a/boards/arm/am335x/beaglebone-black/scripts/sdram.ld +++ b/boards/arm/am335x/beaglebone-black/scripts/sdram.ld @@ -88,6 +88,15 @@ SECTIONS _edata = ABSOLUTE(.); } > ddr + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > ddr + .bss : { _sbss = ABSOLUTE(.); @@ -98,15 +107,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > ddr - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > ddr - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld b/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld index 43d5a50499..7ffc48c195 100644 --- a/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld +++ b/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld @@ -84,6 +84,15 @@ SECTIONS _edata = ABSOLUTE(.); } > RAM AT > FLASH + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > RAM + .bss : { _sbss = ABSOLUTE(.); @@ -94,15 +103,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > RAM - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > RAM - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } @@ -112,4 +112,4 @@ SECTIONS .stab.index 0 : { *(.stab.index) } .stab.indexstr 0 : { *(.stab.indexstr) } .comment 0 : { *(.comment) } -} \ No newline at end of file +} diff --git a/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld b/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld index 66da05a575..ab880dba6c 100644 --- a/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld +++ b/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld @@ -91,6 +91,13 @@ SECTIONS _edata = ABSOLUTE(.); } > ddr3 + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > ddr3 + .bss : { _sbss = ABSOLUTE(.); @@ -101,13 +108,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > ddr3 - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > ddr3 - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/giant-board/scripts/dramboot.ld b/boards/arm/sama5/giant-board/scripts/dramboot.ld index a19c2f3da0..6c8ed83737 100644 --- a/boards/arm/sama5/giant-board/scripts/dramboot.ld +++ b/boards/arm/sama5/giant-board/scripts/dramboot.ld @@ -88,6 +88,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -98,15 +107,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/giant-board/scripts/isram.ld b/boards/arm/sama5/giant-board/scripts/isram.ld index 2beb3044b0..192d2be98d 100644 --- a/boards/arm/sama5/giant-board/scripts/isram.ld +++ b/boards/arm/sama5/giant-board/scripts/isram.ld @@ -84,6 +84,15 @@ SECTIONS _edata = ABSOLUTE(.); } > isram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > isram + .bss : { _sbss = ABSOLUTE(.); @@ -94,15 +103,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > isram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > isram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/giant-board/scripts/uboot.ld b/boards/arm/sama5/giant-board/scripts/uboot.ld index 5e323a4575..0c3775da8e 100644 --- a/boards/arm/sama5/giant-board/scripts/uboot.ld +++ b/boards/arm/sama5/giant-board/scripts/uboot.ld @@ -89,6 +89,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -99,15 +108,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld b/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld index 23bd38e06e..fe28b4245c 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld @@ -88,6 +88,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -98,15 +107,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/jupiter-nano/scripts/isram.ld b/boards/arm/sama5/jupiter-nano/scripts/isram.ld index 857d75d3b7..f1f309662e 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/isram.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/isram.ld @@ -84,6 +84,15 @@ SECTIONS _edata = ABSOLUTE(.); } > isram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > isram + .bss : { _sbss = ABSOLUTE(.); @@ -94,15 +103,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > isram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > isram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/jupiter-nano/scripts/uboot.ld b/boards/arm/sama5/jupiter-nano/scripts/uboot.ld index af8359b069..2045a6caca 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/uboot.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/uboot.ld @@ -89,6 +89,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -99,15 +108,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld b/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld index 23bd38e06e..fe28b4245c 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld @@ -88,6 +88,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -98,15 +107,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d2-xult/scripts/isram.ld b/boards/arm/sama5/sama5d2-xult/scripts/isram.ld index 857d75d3b7..f1f309662e 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/isram.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/isram.ld @@ -84,6 +84,15 @@ SECTIONS _edata = ABSOLUTE(.); } > isram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > isram + .bss : { _sbss = ABSOLUTE(.); @@ -94,15 +103,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > isram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > isram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld b/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld index af8359b069..2045a6caca 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld @@ -89,6 +89,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -99,15 +108,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld b/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld index e8b373acb2..7e19d4ec14 100644 --- a/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld +++ b/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld @@ -89,6 +89,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -99,15 +108,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld b/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld index 6a193d2f8a..7308231c1d 100644 --- a/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld +++ b/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld @@ -85,6 +85,15 @@ SECTIONS _edata = ABSOLUTE(.); } > isram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > isram + .bss : { _sbss = ABSOLUTE(.); @@ -95,15 +104,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > isram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > isram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld index 678807c76f..7e480faf7d 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld @@ -89,6 +89,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -99,15 +108,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld index 7501d19059..41c915c3fc 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld @@ -85,6 +85,15 @@ SECTIONS _edata = ABSOLUTE(.); } > isram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > isram + .bss : { _sbss = ABSOLUTE(.); @@ -95,15 +104,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > isram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > isram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld index f317780db2..44ca17c784 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld @@ -96,6 +96,15 @@ SECTIONS _eronly = LOADADDR(.data); + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -106,15 +115,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld index 8e9a66396e..54fc1d7569 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld @@ -92,6 +92,22 @@ SECTIONS _eronly = LOADADDR(.data); + .ramfunc ALIGN(4): + { + _sramfuncs = ABSOLUTE(.); + *(.ramfunc .ramfunc.*) + _eramfuncs = ABSOLUTE(.); + } > isram AT > norflash + + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > isram + .bss : { _sbss = ABSOLUTE(.); @@ -102,24 +118,8 @@ SECTIONS _ebss = ABSOLUTE(.); } > isram - .ramfunc ALIGN(4): - { - _sramfuncs = ABSOLUTE(.); - *(.ramfunc .ramfunc.*) - _eramfuncs = ABSOLUTE(.); - } > isram AT > norflash - _framfuncs = LOADADDR(.ramfunc); - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > isram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld index cef2b97d29..bf1d16c7bb 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld @@ -124,6 +124,15 @@ SECTIONS _edata = ABSOLUTE(.); } > data AT > locked + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > data + .bss : { _sbss = ABSOLUTE(.); @@ -134,15 +143,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > data - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > data - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld b/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld index 37163a9d80..91461f208f 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld @@ -88,6 +88,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -98,15 +107,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d4-ek/scripts/isram.ld b/boards/arm/sama5/sama5d4-ek/scripts/isram.ld index 0b12243de5..21ec43c65d 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/isram.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/isram.ld @@ -85,6 +85,15 @@ SECTIONS _edata = ABSOLUTE(.); } > isram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > isram + .bss : { _sbss = ABSOLUTE(.); @@ -95,15 +104,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > isram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > isram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld b/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld index b4823bf0e6..6150588127 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld @@ -89,6 +89,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sdram + /* Uninitialized data */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sdram + .bss : { _sbss = ABSOLUTE(.); @@ -99,15 +108,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sdram - /* Uninitialized data */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sdram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot.ld b/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot.ld index d5f5dba405..a498297402 100644 --- a/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot.ld +++ b/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot.ld @@ -110,6 +110,15 @@ SECTIONS PROVIDE(_end_data_ = . ); } + /* data in ram but no need to clean in .s*/ + + .noinit (NOLOAD) : + { + . = ALIGN(4); + *(.noinit) + *(.noinit.*) + } + .bss : { . = ALIGN(4); @@ -120,14 +129,6 @@ SECTIONS *(.bss.*) } - /* data in ram but no need to clean in .s*/ - - .noinit (NOLOAD) : - { - . = ALIGN(4); - *(.noinit) - *(.noinit.*) - } . = ALIGN(4); PROVIDE(_ebss = .); diff --git a/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot_ble.ld b/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot_ble.ld index 8c1ecdd6df..822f0b0fe7 100644 --- a/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot_ble.ld +++ b/boards/arm/tlsr82/tlsr8278adk80d/scripts/flash_boot_ble.ld @@ -187,6 +187,15 @@ SECTIONS PROVIDE(_end_data_ = . ); } + /* data in ram but no need to clean in .s*/ + + .noinit (NOLOAD) : + { + . = ALIGN(4); + *(.noinit) + *(.noinit.*) + } + .bss : { . = ALIGN(4); @@ -197,14 +206,6 @@ SECTIONS *(.bss.*) } - /* data in ram but no need to clean in .s*/ - - .noinit (NOLOAD) : - { - . = ALIGN(4); - *(.noinit) - *(.noinit.*) - } . = ALIGN(4); PROVIDE(_ebss = .); diff --git a/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld b/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld index 803890becc..6c532d3033 100644 --- a/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld +++ b/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld @@ -86,6 +86,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sram AT > flash + /* Global data not cleared after reset. */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sram + .bss : { _sbss = ABSOLUTE(.); @@ -96,15 +105,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sram - /* Global data not cleared after reset. */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld b/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld index 6619531a2b..8c3383516c 100644 --- a/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld +++ b/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld @@ -91,6 +91,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sram AT > flash + /* Global data not cleared after reset. */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sram + .bss : { _sbss = ABSOLUTE(.); @@ -101,15 +110,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sram - /* Global data not cleared after reset. */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) } diff --git a/boards/arm/xmc4/xmc4800-relax/scripts/flash.ld b/boards/arm/xmc4/xmc4800-relax/scripts/flash.ld index ea554ecd7e..0b3bdd3804 100644 --- a/boards/arm/xmc4/xmc4800-relax/scripts/flash.ld +++ b/boards/arm/xmc4/xmc4800-relax/scripts/flash.ld @@ -91,6 +91,15 @@ SECTIONS _edata = ABSOLUTE(.); } > sram AT > flash + /* Global data not cleared after reset. */ + + .noinit : + { + _snoinit = ABSOLUTE(.); + *(.noinit*) + _enoinit = ABSOLUTE(.); + } > sram + .bss : { _sbss = ABSOLUTE(.); @@ -101,15 +110,6 @@ SECTIONS _ebss = ABSOLUTE(.); } > sram - /* Global data not cleared after reset. */ - - .noinit : - { - _snoinit = ABSOLUTE(.); - *(.noinit*) - _enoinit = ABSOLUTE(.); - } > sram - /* Stabs debugging sections. */ .stab 0 : { *(.stab) }