Updated .ld files thanks to @Wolfvak

This commit is contained in:
d0k3 2017-02-22 18:00:49 +01:00
parent 06eaf679b9
commit 5f252a3a34
2 changed files with 19 additions and 13 deletions

17
a9lh.ld
View File

@ -1,13 +1,16 @@
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start) ENTRY(_start)
SECTIONS SECTIONS
{ {
. = 0x23F00000; . = 0x23F00000;
.text.start : { *(.text.start) }
.text : { *(.text) } .text : ALIGN(4) { *(.text.start) *(.text*) }
.data : { *(.data) } .rodata : ALIGN(4) { *(.rodata*) }
.bss : { __bss_start = .; *(.bss COMMON) } .data : ALIGN(4) { *(.data*) }
__bss_end = .; .bss : ALIGN(4) { __bss_start = .; *(.bss* COMMON); __bss_end = .;}
.rodata : { *(.rodata) }
. = ALIGN(4); . = ALIGN(4);
__end__ = ABSOLUTE(.); __end__ = ABSOLUTE(.);
} }

View File

@ -1,13 +1,16 @@
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start) ENTRY(_start)
SECTIONS SECTIONS
{ {
. = 0x08000000; . = 0x08000000;
.text.start : { *(.text.start) }
.text : { *(.text) } .text : ALIGN(4) { *(.text.start) *(.text*) }
.data : { *(.data) } .rodata : ALIGN(4) { *(.rodata*) }
.bss : { __bss_start = .; *(.bss COMMON) } .data : ALIGN(4) { *(.data*) }
__bss_end = .; .bss : ALIGN(4) { __bss_start = .; *(.bss* COMMON); __bss_end = .;}
.rodata : { *(.rodata) }
. = ALIGN(4); . = ALIGN(4);
__end__ = ABSOLUTE(.); __end__ = ABSOLUTE(.);
} }