diff --git a/boards/arm/s32k1xx/rddrone-uavcan144/scripts/flash.ld b/boards/arm/s32k1xx/rddrone-uavcan144/scripts/flash.ld index ac75100366..b8ddeb084a 100644 --- a/boards/arm/s32k1xx/rddrone-uavcan144/scripts/flash.ld +++ b/boards/arm/s32k1xx/rddrone-uavcan144/scripts/flash.ld @@ -88,7 +88,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/rddrone-uavcan144/scripts/sram.ld b/boards/arm/s32k1xx/rddrone-uavcan144/scripts/sram.ld index 1b992ec3b3..8ab2bbe69e 100644 --- a/boards/arm/s32k1xx/rddrone-uavcan144/scripts/sram.ld +++ b/boards/arm/s32k1xx/rddrone-uavcan144/scripts/sram.ld @@ -76,7 +76,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/rddrone-uavcan146/scripts/flash.ld b/boards/arm/s32k1xx/rddrone-uavcan146/scripts/flash.ld index 8d08125616..97c65580ac 100644 --- a/boards/arm/s32k1xx/rddrone-uavcan146/scripts/flash.ld +++ b/boards/arm/s32k1xx/rddrone-uavcan146/scripts/flash.ld @@ -88,7 +88,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/rddrone-uavcan146/scripts/sram.ld b/boards/arm/s32k1xx/rddrone-uavcan146/scripts/sram.ld index ff18d0ef33..dd9883859b 100644 --- a/boards/arm/s32k1xx/rddrone-uavcan146/scripts/sram.ld +++ b/boards/arm/s32k1xx/rddrone-uavcan146/scripts/sram.ld @@ -76,7 +76,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld index 72d8c16b67..9aa2ee7cfe 100644 --- a/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld @@ -88,7 +88,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld index 8d153a622c..c327f3d1bc 100644 --- a/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld @@ -88,7 +88,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld b/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld index 210555e0e9..eec80436f7 100644 --- a/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld +++ b/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld @@ -76,7 +76,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld index 63b989ccc4..2b4f80f78a 100644 --- a/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld @@ -88,7 +88,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld b/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld index 80861598cd..dc04c4250b 100644 --- a/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld +++ b/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld @@ -76,7 +76,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld index 13734e3be7..b0575fdbae 100644 --- a/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld @@ -88,7 +88,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld b/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld index 42a9a2c130..414b37db83 100644 --- a/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld +++ b/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld @@ -76,7 +76,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram