From 578181ace1374e72cb93d69d2c201ce7a0a2300c Mon Sep 17 00:00:00 2001 From: spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:19:18 +0200 Subject: Add 8 MB RAM support and customizable _start stub --- libpsn00b/ldscripts/exe.ld | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libpsn00b/ldscripts') diff --git a/libpsn00b/ldscripts/exe.ld b/libpsn00b/ldscripts/exe.ld index 583d76a..a8dfccf 100644 --- a/libpsn00b/ldscripts/exe.ld +++ b/libpsn00b/ldscripts/exe.ld @@ -6,6 +6,10 @@ * using $gp to reference them) is fully supported; the block is made up of * sections .sdata and .sbss. Note that GP-relative addressing is not * compatible with dynamic linking, as DLLs require GP to be unused. + * + * This linker script assumes main RAM is 8 MB to allow executables meant for + * devkits or arcade systems to be built, however the executable conversion + * tool (elf2x) will throw a warning if the size exceeds 2 MB. */ /*OUTPUT_FORMAT(elf32-littlemips)*/ @@ -15,7 +19,7 @@ ENTRY(_start) MEMORY { /* Mapped into KSEG0 */ KERNEL_RAM (rwx) : ORIGIN = 0x80000000, LENGTH = 0x010000 - APP_RAM (rwx) : ORIGIN = 0x80010000, LENGTH = 0x1f0000 + APP_RAM (rwx) : ORIGIN = 0x80010000, LENGTH = 0x7f0000 } SECTIONS { -- cgit v1.2.3