diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-01-28 09:31:59 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-01-28 19:04:05 -0400 |
commit | a88ef2fde041e5d733b5cbe2728b15ca149d1671 (patch) | |
tree | b4b01c75a640810f6549c485a382242d25a19a97 /ldscript.lcf |
Initial commit
Diffstat (limited to 'ldscript.lcf')
-rw-r--r-- | ldscript.lcf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ldscript.lcf b/ldscript.lcf new file mode 100644 index 0000000..fc61429 --- /dev/null +++ b/ldscript.lcf @@ -0,0 +1,33 @@ +MEMORY +{ + text : origin = 0x8000c000 +} + +SECTIONS +{ + GROUP: + { + .init ALIGN(0x20):{} + extab ALIGN(0x20):{} + extabindex ALIGN(0x20):{} + .text ALIGN(0x20):{} + .ctors ALIGN(0x20):{} + .dtors ALIGN(0x20):{} + .rodata ALIGN(0x20):{} + .data ALIGN(0x20):{} + .bss ALIGN(0x20):{} + .sdata ALIGN(0x20):{} + .sbss ALIGN(0x20):{} + .sdata2 ALIGN(0x20):{} + .sbss2 ALIGN(0x20):{} + .stack ALIGN(0x100):{} + } > text + + + _stack_addr = (_f_sbss2 + SIZEOF(.sbss2) + 65535 + 3073 + 0x7) & ~0x7; + _stack_end = _f_sbss2 + SIZEOF(.sbss2); + _db_stack_addr = (_stack_addr + 0x2000); + _db_stack_end = _stack_addr; + __ArenaLo = (_db_stack_addr + 0x1f) & ~0x1f; + __ArenaHi = 0x81700000; +} |