mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 22:44:30 +00:00
Use incremental link for z_message/z_game_over data shenanigans (#2051)
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
This commit is contained in:
parent
46a5fa919b
commit
f5fd8daffb
7 changed files with 56 additions and 74 deletions
|
@ -1,17 +0,0 @@
|
|||
OUTPUT_ARCH (mips)
|
||||
|
||||
/* Audio Table Linker Script, maps data into rodata */
|
||||
|
||||
SECTIONS {
|
||||
|
||||
.rodata :
|
||||
{
|
||||
*(.data*)
|
||||
*(.rodata*)
|
||||
}
|
||||
|
||||
/DISCARD/ :
|
||||
{
|
||||
*(*);
|
||||
}
|
||||
}
|
22
linker_scripts/data_with_rodata.ld
Normal file
22
linker_scripts/data_with_rodata.ld
Normal file
|
@ -0,0 +1,22 @@
|
|||
OUTPUT_ARCH (mips)
|
||||
|
||||
/* Maps data into rodata, used for audio tables and z_message/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.*)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue