diff options
| author | YamaArashi <shadow962@live.com> | 2016-04-21 23:03:41 -0700 |
|---|---|---|
| committer | YamaArashi <shadow962@live.com> | 2016-04-21 23:06:36 -0700 |
| commit | 0601fb4d0013bd0f2508364b313acbdc371da674 (patch) | |
| tree | 8d11fa93697da09a4e0eb84bb0957d4722f5c8f4 /ld_script.txt | |
| parent | 8890ea36eef541ba571df102c3353ee411033261 (diff) | |
Prepare for switch to standard gas (with preprocessor)
Diffstat (limited to 'ld_script.txt')
| -rw-r--r-- | ld_script.txt | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/ld_script.txt b/ld_script.txt index 30ef0fa11..a8a3cdc93 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -2,6 +2,50 @@ ENTRY(Start) SECTIONS { . = 0x8000000; - .text : { *(.text); } - /DISCARD/ : { *(.rodata) } + + .text : + ALIGN(4) + { + asm/crt0.o(.text); + asm/rom1.o(.text); + src/string_util.o(.text); + asm/rom2.o(.text); + src/rtc.o(.text); + asm/rom3.o(.text); + src/play_time.o(.text); + asm/rom4.o(.text); + src/task.o(.text); + asm/rom5.o(.text); + } =0 + + script_data : + ALIGN(4) + { + data/data1.o(script_data); + } =0 + + lib_text : + ALIGN(4) + { + asm/libgcnmultiboot.o(.text); + asm/libmks4agb.o(.text); + src/agb_flash.o(.text); + src/agb_flash_1m.o(.text); + src/agb_flash_mx.o(.text); + src/siirtc.o(.text); + asm/libagbsyscall.o(.text); + asm/libgcc.o(.text); + } =0 + + .rodata : + ALIGN(4) + { + data/data2.o(.rodata); + } =0 + + /* Discard everything not specifically mentioned above. */ + /DISCARD/ : + { + *(*); + } } |
