Remove include_data_with_rodata spec hack by incremental link of z_game_over (#1691)

This commit is contained in:
Derek Hensley
2024-09-19 18:22:39 -07:00
committed by GitHub
parent 34dcfbccc6
commit 5c6310306f
7 changed files with 38 additions and 36 deletions
-17
View File
@@ -1,17 +0,0 @@
OUTPUT_ARCH (mips)
/* Audio Table Linker Script, maps data into rodata */
SECTIONS {
.rodata :
{
*(.data*)
*(.rodata*)
}
/DISCARD/ :
{
*(*);
}
}
+22
View File
@@ -0,0 +1,22 @@
OUTPUT_ARCH (mips)
/* Maps data into rodata, used for audio tables and z_game_over */
SECTIONS {
.rodata :
{
*(.data)
*(.rodata)
*(.rodata.str*)
*(.rodata.cst*)
}
/DISCARD/ :
{
/* GNU ld assumes that the linker script always combines .gptab.data and
* .gptab.sdata into .gptab.sdata, and likewise for .gptab.bss and .gptab.sbss.
* To avoid dealing with this, we just discard all .gptab sections.
*/
*(.gptab.*)
}
}