tests/tcg/nios2: Tweak 10m50-ghrd.ld
More closely follow the default linker script for nios2. This magically fixes a problem resolving .got relocs from the toolchain's libgcc.a. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1258 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20221024035341.2971123-1-richard.henderson@linaro.org> Message-Id: <20221027183637.2772968-10-alex.bennee@linaro.org>
This commit is contained in:
parent
991e905123
commit
25916dd65d
@ -44,11 +44,15 @@ SECTIONS
|
|||||||
.data : ALIGN(4) {
|
.data : ALIGN(4) {
|
||||||
*(.shdata)
|
*(.shdata)
|
||||||
*(.data .data.* .gnu.linkonce.d.*)
|
*(.data .data.* .gnu.linkonce.d.*)
|
||||||
. = ALIGN(4);
|
} >ram :RAM
|
||||||
_gp = ABSOLUTE(. + 0x8000);
|
|
||||||
*(.got.plt) *(.got)
|
HIDDEN (_gp = ALIGN(16) + 0x7ff0);
|
||||||
*(.lit8)
|
PROVIDE_HIDDEN (gp = _gp);
|
||||||
*(.lit4)
|
.got : ALIGN(4) {
|
||||||
|
*(.got.plt) *(.igot.plt) *(.got) *(.igot)
|
||||||
|
} >ram :RAM
|
||||||
|
|
||||||
|
.sdata : ALIGN(4) {
|
||||||
*(.sdata .sdata.* .gnu.linkonce.s.*)
|
*(.sdata .sdata.* .gnu.linkonce.s.*)
|
||||||
} >ram :RAM
|
} >ram :RAM
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user