diff options
author | camthesaxman <cameronghall@cox.net> | 2018-01-20 16:02:30 -0600 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2018-01-20 16:02:30 -0600 |
commit | 584a68eb9d7a7c9cfa8e8ee1873ebe495f4fdec7 (patch) | |
tree | 14fcfce39a05a3405e3abe564a0074623017156d | |
parent | e2a0522780d7124a392bf028c9c1f50c4213b460 (diff) |
use INCLUDE to include EWRAM and COMMON ld scripts
-rw-r--r-- | ld_script.sed | 10 | ||||
-rw-r--r-- | ld_script.txt | 4 |
2 files changed, 2 insertions, 12 deletions
diff --git a/ld_script.sed b/ld_script.sed index b91542b6f..76b18c301 100644 --- a/ld_script.sed +++ b/ld_script.sed @@ -1,14 +1,4 @@ -/<EWRAM>/ { - r sym_ewram.ld - d -} - /<BSS>/ { r sym_bss.ld d } - -/<COMMON>/ { - r sym_common.ld - d -} diff --git a/ld_script.txt b/ld_script.txt index 82ba46b9c..18de179bc 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -9,7 +9,7 @@ SECTIONS { ewram (NOLOAD) : ALIGN(4) { -<EWRAM> + INCLUDE "sym_ewram.ld" . = 0x40000; } @@ -26,7 +26,7 @@ SECTIONS { src/libs/m4a_2.o(.bss.code); /* COMMON starts at 0x3001760 */ -<COMMON> + INCLUDE "sym_common.ld" tools/agbcc/lib/libc.a:sbrkr.o(COMMON); end = .; . = 0x8000; |