diff options
author | Guoqi Chen <chenguoqi@loongson.cn> | 2023-10-24 16:24:39 +0800 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2023-11-02 19:46:03 +0000 |
commit | 39d3c4ad35984b470b2928a37ea4a7e721b1225a (patch) | |
tree | 9b517ba798f8b80e14251d2a8948f7407d9ff58c /api | |
parent | 925a4d93dcc958ee9250bcc213baa0fc7bd892ae (diff) | |
download | go-39d3c4ad35984b470b2928a37ea4a7e721b1225a.tar.gz go-39d3c4ad35984b470b2928a37ea4a7e721b1225a.zip |
debug/elf,cmd/link: add additional relocations for loong64
The Linker Relaxation feature on Loong64 is already supported in binutils 2.41.
The intermediate code generated after enabling this feature introduces three
reloc types R_LARCH_B26, R_LARCH_ADD32 and R_LARCH_SUB32.
The other relocation types are not currently used when running all.bash, but
in order to avoid the host tool chain making the decision to use it we don't
have to catch it every time.
The LoongArch ABI at here:
https://github.com/loongson/la-abi-specs/blob/release/la-abi.adoc
Corresponding binutils implementation:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=be1ebb6710a8f707bd4b0eecbd00f4f4964050e5
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1b6fccd28db14fffe75ff6755307047ef932c81e
Fixes #63725
Change-Id: I891115cfdbcf785ab494c881d5f9d1bf8748da8b
Reviewed-on: https://go-review.googlesource.com/c/go/+/537615
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/63725.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/api/next/63725.txt b/api/next/63725.txt new file mode 100644 index 0000000000..ff3e05348b --- /dev/null +++ b/api/next/63725.txt @@ -0,0 +1,18 @@ +pkg debug/elf, const R_LARCH_64_PCREL = 109 #63725 +pkg debug/elf, const R_LARCH_64_PCREL R_LARCH #63725 +pkg debug/elf, const R_LARCH_ADD6 = 105 #63725 +pkg debug/elf, const R_LARCH_ADD6 R_LARCH #63725 +pkg debug/elf, const R_LARCH_ADD_ULEB128 = 107 #63725 +pkg debug/elf, const R_LARCH_ADD_ULEB128 R_LARCH #63725 +pkg debug/elf, const R_LARCH_ALIGN = 102 #63725 +pkg debug/elf, const R_LARCH_ALIGN R_LARCH #63725 +pkg debug/elf, const R_LARCH_CFA = 104 #63725 +pkg debug/elf, const R_LARCH_CFA R_LARCH #63725 +pkg debug/elf, const R_LARCH_DELETE = 101 #63725 +pkg debug/elf, const R_LARCH_DELETE R_LARCH #63725 +pkg debug/elf, const R_LARCH_PCREL20_S2 = 103 #63725 +pkg debug/elf, const R_LARCH_PCREL20_S2 R_LARCH #63725 +pkg debug/elf, const R_LARCH_SUB6 = 106 #63725 +pkg debug/elf, const R_LARCH_SUB6 R_LARCH #63725 +pkg debug/elf, const R_LARCH_SUB_ULEB128 = 108 #63725 +pkg debug/elf, const R_LARCH_SUB_ULEB128 R_LARCH #63725 |