1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #11591 from benpicco/noinit_move

ldscripts: move .noinit section behind .bss section
This commit is contained in:
Juan I Carrano 2019-05-31 18:23:00 +02:00 committed by GitHub
commit 0d88de90c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 24 deletions

View File

@ -127,17 +127,6 @@ SECTIONS
_erelocate = .;
} > ram AT> rom
/*
* collect all uninitialized sections that go into RAM
*/
.noinit (NOLOAD) :
{
__noinit_start = .;
*(.noinit)
. = ALIGN(4);
__noinit_end = .;
} > ram
/* .bss section which is used for uninitialized data */
.bss (NOLOAD) :
{
@ -151,6 +140,17 @@ SECTIONS
_ezero = .;
} > ram
/*
* collect all uninitialized sections that go into RAM
*/
.noinit (NOLOAD) :
{
__noinit_start = .;
*(.noinit)
. = ALIGN(4);
__noinit_end = .;
} > ram
/* heap section */
. = ALIGN(4);
_sheap = . ;

View File

@ -154,19 +154,6 @@ SECTIONS
end_dtors = .;
} >ram
/*
* collect all uninitialized sections that go into RAM
*/
.noinit (NOLOAD) :
{
__noinit_start = .;
PROVIDE(__fiq_handler = .);
*(.fiq)
*(.noinit)
} > ram
. = ALIGN(4);
__noinit_end = .;
/*
* collect all zero initialized sections that go into RAM
*/
@ -213,6 +200,18 @@ SECTIONS
. = ALIGN(4); /* ensure data is aligned so relocation can use 4-byte operations */
_edata = .; /* define a global symbol marking the end of the .data section */
/*
* collect all uninitialized sections that go into RAM
*/
.noinit (NOLOAD) :
{
__noinit_start = .;
PROVIDE(__fiq_handler = .);
*(.fiq)
*(.noinit)
} > ram
. = ALIGN(4);
__noinit_end = .;
/*
* Exception frames (newer linker versions generate these but they use of