[PATCH 7/7] LoongArch: make .text start at 0x10000
WANG Xuerui
i.swmail@xen0n.name
Mon Oct 25 03:12:03 GMT 2021
From: WANG Xuerui <git@xen0n.name>
The previous value obviously is coming from MIPS; no reason is given as
to why this is absolutely needed. Just change to get closer to RISC-V
and a few other arches.
2021-10-25 WANG Xuerui <git@xen0n.name>
ld/
* emulparams/elf64loongarch-defs.sh: Change TEXT_START_ADDR to
0x10000.
---
ld/emulparams/elf64loongarch-defs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ld/emulparams/elf64loongarch-defs.sh b/ld/emulparams/elf64loongarch-defs.sh
index c793f5d8388..744b018a6f6 100644
--- a/ld/emulparams/elf64loongarch-defs.sh
+++ b/ld/emulparams/elf64loongarch-defs.sh
@@ -30,7 +30,7 @@ esac
# LoongArch nop is 'andi $r0,$r0,0'.
NOP=0x00004003
-TEXT_START_ADDR=0x120000000
+TEXT_START_ADDR=0x10000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
--
2.33.1
More information about the Binutils
mailing list