summaryrefslogtreecommitdiff
path: root/linker_scripts
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2025-01-03 04:42:28 +0000
committerGitHub <noreply@github.com>2025-01-02 23:42:28 -0500
commit4c88cfd08a9c0f48b16332aaf1d2e322ebc77161 (patch)
treee1af6db7a3c47eab3f689453e7b872cd30afb6d8 /linker_scripts
parent9dafc2f2e4cecff745be05b7003f4e5b2e9f2ba9 (diff)
[iQue] Match makerom (#2397)
Diffstat (limited to 'linker_scripts')
-rw-r--r--linker_scripts/makerom.ld13
1 files changed, 13 insertions, 0 deletions
diff --git a/linker_scripts/makerom.ld b/linker_scripts/makerom.ld
new file mode 100644
index 000000000..a898c6b34
--- /dev/null
+++ b/linker_scripts/makerom.ld
@@ -0,0 +1,13 @@
+#include "boot.h"
+
+/* These are only here due to iQue entry.s using ori to load the lower halves of symbols
+ * rather than addiu, so the usual relocation operators %hi() and %lo() can't be used. */
+
+_bootSegmentBssStart_HI = _bootSegmentBssStart >> 16;
+
+_bootSegmentBssSize_HI = _bootSegmentBssSize >> 16;
+
+bootproc_HI = bootproc >> 16;
+
+BOOT_STACK_TOP = (sBootThreadStack + BOOT_STACK_SIZE);
+BOOT_STACK_TOP_HI = BOOT_STACK_TOP >> 16;