From dd742dc80981be5cc5ff218485cbfa408ecb0596 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Fri, 22 Jan 2021 14:27:02 +0100 Subject: ld_scripts: Remove obsolete linker scripts. --- ld_scripts/generated.ld.j2 | 65 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) (limited to 'ld_scripts/generated.ld.j2') diff --git a/ld_scripts/generated.ld.j2 b/ld_scripts/generated.ld.j2 index bc088d5..0eb3e8c 100644 --- a/ld_scripts/generated.ld.j2 +++ b/ld_scripts/generated.ld.j2 @@ -4,4 +4,67 @@ MEMORY { {% endfor %} } -INCLUDE "arm_flash_ram.ld" +SECTIONS { + . = 0; + + .vectors : ALIGN(16) SUBALIGN(16) { + KEEP(*(.vectors)) + } > flash + + .init_array : ALIGN(4) SUBALIGN(4) { + PROVIDE(_init_array_start = .); + KEEP(*(SORT(.init_array.*))) + KEEP(*(.init_array)) + PROVIDE(_init_array_end = .); + } > flash + + .fini_array : ALIGN(4) SUBALIGN(4) { + PROVIDE(_fini_array_start = .); + KEEP(*(.fini_array)) + KEEP(*(SORT(.fini_array.*))) + PROVIDE(_fini_array_end = .); + } > flash + + .text : ALIGN(4) SUBALIGN(4) { + *(.text.startup.*) + *(.text) + *(.text.*) + *(.rodata) + *(.rodata.*) + *(.srodata) + *(.srodata.*) + *(.glue_7t) + *(.glue_7) + *(.gcc*) + } > flash + + .bootinfo : ALIGN(4) SUBALIGN(4) { + *(.bootinfo) + } > ram + + . = ALIGN(4); + + .data : ALIGN(4) SUBALIGN(4) { + PROVIDE(_data_start = .); + *(.data) + *(.data.*) + *(.sdata) + *(.sdata.*) + *(.ramtext) + PROVIDE(_data_end = .); + } > ram AT > flash + + .bss : { + PROVIDE(_bss_start = .); + *(.bss) + *(.bss.*) + *(.sbss) + *(.sbss.*) + *(COMMON) + PROVIDE(_bss_end = .); + } > ram + + PROVIDE(_ram_end = ORIGIN(ram) + LENGTH(ram)); + + PROVIDE(_data_rom = LOADADDR(.data)); +} -- cgit v1.2.3