diff options
| author | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-06-27 22:19:18 +0200 |
|---|---|---|
| committer | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-06-27 22:19:18 +0200 |
| commit | 578181ace1374e72cb93d69d2c201ce7a0a2300c (patch) | |
| tree | 8e91212c966bf95bd7c34901e56dad7f81b9af57 /libpsn00b/ldscripts | |
| parent | ef776e728cfa67fbca38bb375152b336fa0b5200 (diff) | |
| download | psn00bsdk-578181ace1374e72cb93d69d2c201ce7a0a2300c.tar.gz | |
Add 8 MB RAM support and customizable _start stub
Diffstat (limited to 'libpsn00b/ldscripts')
| -rw-r--r-- | libpsn00b/ldscripts/exe.ld | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |
