summaryrefslogtreecommitdiff
path: root/ld_script_modern.txt
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-04-04 12:58:08 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-04-04 12:58:08 -0400
commitcc3419eff7c7139f4b4a92a31bbb6255e3dba1dd (patch)
tree73a4d8c2e5c34feb46ca9ada6b1668b3d95cd3ac /ld_script_modern.txt
parentc47eca8a182a2a202cd65e2af93e9ef322d8674c (diff)
Get pokefirered_modern to build
Diffstat (limited to 'ld_script_modern.txt')
-rw-r--r--ld_script_modern.txt91
1 files changed, 91 insertions, 0 deletions
diff --git a/ld_script_modern.txt b/ld_script_modern.txt
new file mode 100644
index 000000000..68d704109
--- /dev/null
+++ b/ld_script_modern.txt
@@ -0,0 +1,91 @@
+gNumMusicPlayers = 4;
+gMaxLines = 0;
+
+SECTIONS {
+ . = 0x2000000;
+
+ ewram (NOLOAD) :
+ ALIGN(4)
+ {
+ gHeap = .;
+
+ . = 0x1C000;
+
+ *(ewram_data);
+ /* pokemon_summary_screen.o */
+ gUnknown_203B140 = .; . += 0x4;
+ gUnknown_203B144 = .; . += 0x4;
+ gUnknown_203B148 = .; . += 0x10;
+ gUnknown_203B158 = .; . += 0x4;
+ gUnknown_203B15C = .; . += 0x4;
+ gUnknown_203B160 = .; . += 0x4;
+ gUnknown_203B164 = .; . += 0x4;
+ gUnknown_203B168 = .; . += 0x4;
+ gLastViewedMonIndex = .; . += 0x1;
+ gUnknown_203B16D = .; . += 0x1;
+ gUnknown_203B16E = .; . += 0x2;
+ gUnknown_203B170 = .; . += 0x4;
+
+ . = 0x40000;
+}
+
+ . = 0x3000000;
+
+ iwram (NOLOAD) :
+ ALIGN(4)
+ {
+ /* .bss starts at 0x3000000 */
+ *(.bss*);
+ /* .bss.code starts at 0x3001AA8 */
+ src/m4a.o(.bss.code);
+
+ /* COMMON starts at 0x30022A8 */
+ *(COMMON);
+ end = .;
+ . = 0x8000;
+ }
+
+ . = 0x8000000;
+
+ .text :
+ ALIGN(4)
+ {
+ asm/crt0.o(.text);
+ *(.text*);
+ } =0
+
+ script_data :
+ ALIGN(4)
+ {
+ *(script_data);
+ } =0
+
+ .data :
+ ALIGN(4)
+ {
+ *(.data*);
+ } =0
+
+ .rodata :
+ ALIGN(4)
+ {
+ *(.rodata*);
+ } =0
+
+ /* DWARF 2 sections */
+ .debug_aranges 0 : { *(.debug_aranges) }
+ .debug_pubnames 0 : { *(.debug_pubnames) }
+ .debug_info 0 : { *(.debug_info) }
+ .debug_abbrev 0 : { *(.debug_abbrev) }
+ .debug_line 0 : { *(.debug_line) }
+ .debug_frame 0 : { *(.debug_frame) }
+ .debug_str 0 : { *(.debug_str) }
+ .debug_loc 0 : { *(.debug_loc) }
+ .debug_macinfo 0 : { *(.debug_macinfo) }
+
+ /* Discard everything not specifically mentioned above. */
+ /DISCARD/ :
+ {
+ *(*);
+ }
+}