mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
derive the data ends
This commit is contained in:
parent
f7434a4bf3
commit
8e547c6783
10
agb/gba.ld
10
agb/gba.ld
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
|
@ -22,7 +22,6 @@ __text_start = ORIGIN(rom);
|
|||
SECTIONS {
|
||||
. = __text_start;
|
||||
|
||||
|
||||
.text : {
|
||||
KEEP(*(.crt0));
|
||||
*(.crt0 .crt0*);
|
||||
|
@ -46,6 +45,7 @@ SECTIONS {
|
|||
__iwram_data_start = ADDR(.iwram);
|
||||
__iwram_rom_start = LOADADDR(.iwram);
|
||||
__iwram_rom_length_halfwords = (SIZEOF(.iwram) + 1) / 2;
|
||||
__iwram_end = __iwram_data_start + SIZEOF(.iwram);
|
||||
|
||||
.ewram : {
|
||||
*(.ewram .ewram.*);
|
||||
|
@ -53,6 +53,7 @@ SECTIONS {
|
|||
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
} > ewram AT>rom
|
||||
__ewram_data_start = ADDR(.ewram);
|
||||
__ewram_rom_start = LOADADDR(.ewram);
|
||||
|
@ -61,8 +62,11 @@ SECTIONS {
|
|||
.bss : {
|
||||
*(.bss .bss.*);
|
||||
. = ALIGN(4);
|
||||
__iwram_end = ABSOLUTE(.);
|
||||
} > iwram
|
||||
= ABSOLUTE(.);
|
||||
} > ewram
|
||||
|
||||
__ewram_data_end = __ewram_data_start + SIZEOF(.ewram) + SIZEOF(.bss);
|
||||
|
||||
|
||||
.shstrtab : {
|
||||
*(.shstrtab)
|
||||
|
|
Loading…
Reference in a new issue