summaryrefslogtreecommitdiff
path: root/linker_scripts
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2024-08-28 02:09:48 +0100
committerGitHub <noreply@github.com>2024-08-27 18:09:48 -0700
commit7210cfac2f6e5ca538d412c3811e4e2c11780db8 (patch)
tree85f70d58ebdda8f6541b71b4cfc0ee80b40f2134 /linker_scripts
parent98d9571f51aa85279ae501707793848b1c3f6256 (diff)
[Audio 6/?] Build Soundfonts and the Soundfont Table (#1675)
* [Audio 6/?] Build Soundfonts and the Soundfont Table * Fix bss * Maybe fix warnings * Improve lots of error messages * Suggested changes from OoT PR * Suggested changes * Make soundfont_table.h generation depend on the samplebank xmls since they are read, report from which soundfont the invalid pointer indirect warning originates from
Diffstat (limited to 'linker_scripts')
-rw-r--r--linker_scripts/soundfont.ld19
1 files changed, 19 insertions, 0 deletions
diff --git a/linker_scripts/soundfont.ld b/linker_scripts/soundfont.ld
new file mode 100644
index 000000000..d914a7de3
--- /dev/null
+++ b/linker_scripts/soundfont.ld
@@ -0,0 +1,19 @@
+OUTPUT_ARCH (mips)
+
+/* Soundfont Linker Script, maps data into rodata and adds a file length symbol */
+
+SECTIONS {
+
+ .rodata :
+ {
+ *(.data*)
+ *(.rodata*)
+ . = ALIGN(16);
+ __LEN__ = . - ADDR(.rodata);
+ }
+
+ /DISCARD/ :
+ {
+ *(*);
+ }
+}