mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 19:54:21 +01:00
Merge pull request #1738 from mrgriffin/wildcard-ld-script
Wildcards in ld_script.txt
This commit is contained in:
commit
3dc3dc847f
@ -20,6 +20,9 @@ SECTIONS {
|
|||||||
. = 0x1C000;
|
. = 0x1C000;
|
||||||
|
|
||||||
INCLUDE "sym_ewram.ld"
|
INCLUDE "sym_ewram.ld"
|
||||||
|
src/*.o(.ewram_data);
|
||||||
|
gflib/*.o(.ewram_data);
|
||||||
|
|
||||||
*libc.a:impure.o(.data);
|
*libc.a:impure.o(.data);
|
||||||
*libc.a:locale.o(.data);
|
*libc.a:locale.o(.data);
|
||||||
*libc.a:mallocr.o(.data);
|
*libc.a:mallocr.o(.data);
|
||||||
@ -33,12 +36,18 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
/* .bss starts at 0x3000000 */
|
/* .bss starts at 0x3000000 */
|
||||||
INCLUDE "sym_bss.ld"
|
INCLUDE "sym_bss.ld"
|
||||||
|
src/*.o(.bss);
|
||||||
|
gflib/*.o(.bss);
|
||||||
|
data/*.o(.bss);
|
||||||
|
|
||||||
/* .bss.code starts at 0x3001AA8 */
|
/* .bss.code starts at 0x3001AA8 */
|
||||||
src/m4a.o(.bss.code);
|
src/m4a.o(.bss.code);
|
||||||
|
|
||||||
/* COMMON starts at 0x30022A8 */
|
/* COMMON starts at 0x30022A8 */
|
||||||
INCLUDE "sym_common.ld"
|
INCLUDE "sym_common.ld"
|
||||||
|
src/*.o(COMMON);
|
||||||
|
gflib/*.o(COMMON);
|
||||||
|
|
||||||
*libc.a:sbrkr.o(COMMON);
|
*libc.a:sbrkr.o(COMMON);
|
||||||
end = .;
|
end = .;
|
||||||
. = 0x8000;
|
. = 0x8000;
|
||||||
@ -1309,6 +1318,16 @@ SECTIONS {
|
|||||||
src/graphics.o(.rodata);
|
src/graphics.o(.rodata);
|
||||||
} =0
|
} =0
|
||||||
|
|
||||||
|
extra :
|
||||||
|
ALIGN(4)
|
||||||
|
{
|
||||||
|
src/*.o(.text);
|
||||||
|
gflib/*.o(.text);
|
||||||
|
src/*.o(.rodata);
|
||||||
|
gflib/*.o(.rodata);
|
||||||
|
data/*.o(.rodata);
|
||||||
|
} = 0
|
||||||
|
|
||||||
/* DWARF debug sections.
|
/* DWARF debug sections.
|
||||||
Symbols in the DWARF debugging sections are relative to the beginning
|
Symbols in the DWARF debugging sections are relative to the beginning
|
||||||
of the section so we begin them at 0. */
|
of the section so we begin them at 0. */
|
||||||
|
Loading…
Reference in New Issue
Block a user