forked from Imagelibrary/binutils-gdb
Also discard the `.MIPS.options' section, used with n64 MIPS binaries, along with similar other MIPS sections (`.reginfo', `.MIPS.abiflags') not relevant for the test cases concerned, fixing these regressions: mips64-openbsd -FAIL: ld-elf/group3a mips64-openbsd -FAIL: ld-elf/group3b mips64-openbsd -FAIL: Place orphan sections (map file check) mips64-openbsd -FAIL: ld-elf/orphan-region mips64-openbsd -FAIL: ld-elf/orphan mips64-openbsd -FAIL: overlay size (map file check) mips64-openbsd -FAIL: overlay size mips64el-openbsd -FAIL: ld-elf/group3a mips64el-openbsd -FAIL: ld-elf/group3b mips64el-openbsd -FAIL: Place orphan sections (map file check) mips64el-openbsd -FAIL: ld-elf/orphan-region mips64el-openbsd -FAIL: ld-elf/orphan mips64el-openbsd -FAIL: overlay size (map file check) mips64el-openbsd -FAIL: overlay size Co-Authored-By: Maciej W. Rozycki <macro@orcam.me.uk> binutils/ * testsuite/binutils-all/strip-3.d: Add `-R .MIPS.options' to the `strip' tag. ld/ * testsuite/ld-elf/group.ld: Also discard `.MIPS.options'. * testsuite/ld-elf/orphan-region.ld: Likewise. * testsuite/ld-elf/orphan.ld: Likewise. * testsuite/ld-mips-elf/got-page-1.ld: Likewise. * testsuite/ld-scripts/overlay-size.t: Likewise.
65 lines
1.2 KiB
Raku
65 lines
1.2 KiB
Raku
MEMORY
|
|
{
|
|
TEXTMEM (ARX) : ORIGIN = 0x10000, LENGTH = 32K
|
|
DATAMEM (AW) : ORIGIN = 0x20000, LENGTH = 32K
|
|
LOADMEM (AW) : ORIGIN = 0x30000, LENGTH = 32K
|
|
}
|
|
|
|
/* Map should be:
|
|
|
|
SIZE VMA LMA
|
|
.bss1 10 20000 20000
|
|
.bss2 30 20000 20010
|
|
.bss3 20 20000 20040
|
|
.mbss 230 20030 20060
|
|
|
|
.mtext 20 10000 30000
|
|
.text1 80 10020 30020
|
|
.text2 40 10020 300a0
|
|
.text3 20 10020 300e0
|
|
|
|
.data1 30 20260 30100
|
|
.data2 40 20260 30130
|
|
.data3 50 20260 30170 */
|
|
|
|
SECTIONS
|
|
{
|
|
OVERLAY :
|
|
{
|
|
.bss1 { *(.bss1) }
|
|
.bss2 { *(.bss2) }
|
|
.bss3 { *(.bss3) }
|
|
} > DATAMEM
|
|
|
|
end_of_bss_overlays = . ;
|
|
|
|
.mtext : { *(.mtext) } > TEXTMEM AT > LOADMEM
|
|
|
|
.mbss : AT (__load_stop_bss3)
|
|
{
|
|
*(.mbss)
|
|
. += 0x200;
|
|
} > DATAMEM
|
|
|
|
OVERLAY :
|
|
{
|
|
.text1 { *(.text1) }
|
|
.text2 { *(.text2) }
|
|
.text3 { *(.text3) }
|
|
} > TEXTMEM AT > LOADMEM
|
|
|
|
end_of_text_overlays = . ;
|
|
|
|
OVERLAY :
|
|
{
|
|
.data1 { *(.data1) }
|
|
.data2 { *(.data2) }
|
|
.data3 { *(.data3) }
|
|
} > DATAMEM AT > LOADMEM
|
|
|
|
end_of_data_overlays = . ;
|
|
|
|
. = 0x8000;
|
|
/DISCARD/ : { *(.reginfo) *(.MIPS.abiflags) *(.MIPS.options) }
|
|
}
|