boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script: Fix .ARM.exidx section overlap with .data

This commit is contained in:
Daniel Pereira Volpato 2019-09-17 11:23:53 -06:00 committed by Gregory Nutt
parent d78e60d18e
commit 4737fd7497

View file

@ -71,20 +71,17 @@ SECTIONS
_etext = ABSOLUTE(.);
} > flash
.init_section : {
. = ALIGN(4);
.init_section : ALIGN(4) {
_sinit = ABSOLUTE(.);
*(.init_array .init_array.*)
_einit = ABSOLUTE(.);
} > flash
.ARM.extab : {
. = ALIGN(4);
.ARM.extab : ALIGN(4) {
*(.ARM.extab*)
} > flash
.ARM.exidx : {
. = ALIGN(4);
.ARM.exidx : ALIGN(4) {
__exidx_start = ABSOLUTE(.);
*(.ARM.exidx*)
__exidx_end = ABSOLUTE(.);
@ -98,8 +95,7 @@ SECTIONS
*(.ram_vectors)
} > sram
.data : {
. = ALIGN(4);
.data : ALIGN(4) {
_sdata = ABSOLUTE(.);
*(.data .data.*)
*(.gnu.linkonce.d.*)
@ -108,8 +104,7 @@ SECTIONS
_edata = ABSOLUTE(.);
} > sram AT > flash
.bss : {
. = ALIGN(4);
.bss : ALIGN(4) {
_sbss = ABSOLUTE(.);
*(.bss .bss.*)
*(.gnu.linkonce.b.*)