diff --git a/adc/stm32.ld b/adc/stm32.ld index 4ba1651..3e5d758 100644 --- a/adc/stm32.ld +++ b/adc/stm32.ld @@ -11,9 +11,13 @@ SECTIONS { .text : { *(.vectors) /* Vector table */ + *(.text) *(.text*) /* Program code */ + *(.gnu.linkonce.t.*) . = ALIGN(4); + *(.rodata) *(.rodata*) /* Read only data */ + *(.gnu.linkonce.r.*) . = ALIGN(4); } >rom @@ -21,13 +25,17 @@ SECTIONS { .data : { + *(.data) *(.data*) /* Read-write initialized data */ + *(.gnu.linkonce.d.*) . = ALIGN(4); - } >ram + } >ram AT > rom .bss : { + *(.bss) *(.bss*) /* Read-write zero initialized data */ + *(.gnu.linkonce.b.*) . = ALIGN(4); } >ram AT > rom