diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-22 14:27:02 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-22 14:27:02 +0100 |
commit | dd742dc80981be5cc5ff218485cbfa408ecb0596 (patch) | |
tree | 6bd44b642ac65ce207aebcb0f6b4c59ddad4728a /ld_scripts/generated.ld.j2 | |
parent | 257c13ef064e20bfbe7330004c76a77f8a73b86b (diff) |
ld_scripts: Remove obsolete linker scripts.
Diffstat (limited to 'ld_scripts/generated.ld.j2')
-rw-r--r-- | ld_scripts/generated.ld.j2 | 65 |
1 files changed, 64 insertions, 1 deletions
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)); +} |