summaryrefslogtreecommitdiff
path: root/linker_scripts/data_with_rodata.ld
blob: 9318247f93dc490aef0ca254f9aaed7d53664b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.*)
        /* Inhibit merging of COMMON into scommon */
        *(.scommon)
    }
}