[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/31] tests/tcg/nios2: Tweak 10m50-ghrd.ld
From: |
Alex Bennée |
Subject: |
[PULL 11/31] tests/tcg/nios2: Tweak 10m50-ghrd.ld |
Date: |
Mon, 31 Oct 2022 13:09:50 +0000 |
From: Richard Henderson <richard.henderson@linaro.org>
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>
diff --git a/tests/tcg/nios2/10m50-ghrd.ld b/tests/tcg/nios2/10m50-ghrd.ld
index 7db0d59ad7..71cdda450c 100644
--- a/tests/tcg/nios2/10m50-ghrd.ld
+++ b/tests/tcg/nios2/10m50-ghrd.ld
@@ -44,11 +44,15 @@ SECTIONS
.data : ALIGN(4) {
*(.shdata)
*(.data .data.* .gnu.linkonce.d.*)
- . = ALIGN(4);
- _gp = ABSOLUTE(. + 0x8000);
- *(.got.plt) *(.got)
- *(.lit8)
- *(.lit4)
+ } >ram :RAM
+
+ HIDDEN (_gp = ALIGN(16) + 0x7ff0);
+ PROVIDE_HIDDEN (gp = _gp);
+ .got : ALIGN(4) {
+ *(.got.plt) *(.igot.plt) *(.got) *(.igot)
+ } >ram :RAM
+
+ .sdata : ALIGN(4) {
*(.sdata .sdata.* .gnu.linkonce.s.*)
} >ram :RAM
--
2.34.1
- [PULL for 7.2 00/31] testing and plugins updates, Alex Bennée, 2022/10/31
- [PULL 06/31] configure: don't enable cross compilers unless in target_list, Alex Bennée, 2022/10/31
- [PULL 07/31] configure: fix the --enable-static --disable-pie case, Alex Bennée, 2022/10/31
- [PULL 10/31] tests/tcg: use regular semihosting for nios2-softmmu, Alex Bennée, 2022/10/31
- [PULL 03/31] tests/docker: update fedora-win[32|64]-cross with lcitool, Alex Bennée, 2022/10/31
- [PULL 04/31] tests/docker: update test-mingw to run single build, Alex Bennée, 2022/10/31
- [PULL 13/31] tcg: Avoid using hardcoded /tmp, Alex Bennée, 2022/10/31
- [PULL 12/31] semihosting/arm-compat-semi: Avoid using hardcoded /tmp, Alex Bennée, 2022/10/31
- [PULL 09/31] tests/docker: Add flex/bison to `debian-hexagon-cross`, Alex Bennée, 2022/10/31
- [PULL 15/31] hw/usb: dev-mtp: Use g_mkdir(), Alex Bennée, 2022/10/31
- [PULL 11/31] tests/tcg/nios2: Tweak 10m50-ghrd.ld,
Alex Bennée <=
- [PULL 14/31] block/vvfat: Unify the mkdir() call, Alex Bennée, 2022/10/31
- [PULL 01/31] tests/lcitool: Rename non-Debian specific helper, Alex Bennée, 2022/10/31
- [PULL 05/31] tests/docker: Add flex/bison to `debian-all-test`, Alex Bennée, 2022/10/31
- [PULL 02/31] tests/lcitool: Refresh to latest libvirt-ci module, Alex Bennée, 2022/10/31
- [PULL 08/31] tests/avocado: extend the timeout for x86_64 tcg tests, Alex Bennée, 2022/10/31
- [PULL 26/31] target/s390x: fake instruction loading when handling 'ex', Alex Bennée, 2022/10/31
- [PULL 25/31] target/s390x: don't probe next pc for EXecuted insns, Alex Bennée, 2022/10/31
- [PULL 28/31] contrib/plugins: enable debug on CONFIG_DEBUG_TCG, Alex Bennée, 2022/10/31
- [PULL 19/31] tests/avocado: set -machine none for userfwd and vnc tests, Alex Bennée, 2022/10/31
- [PULL 17/31] MAINTAINERS: add features_to_c.sh to gdbstub files, Alex Bennée, 2022/10/31