]> Cypherpunks repositories - gostls13.git/commit
cmd/link: recognize the new R_LARCH_32_PCREL type on loong64
authorWANG Xuerui <git@xen0n.name>
Wed, 3 Aug 2022 11:43:49 +0000 (19:43 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 15 Aug 2022 13:11:25 +0000 (13:11 +0000)
commit2c5b1746164581c7393a7a7f7ba796e823af0248
tree9c7479052a308f5bf9291f11a8b77a16bdc0f8c6
parent03fb5d7574eaceb26e99586dec20691663fe6b82
cmd/link: recognize the new R_LARCH_32_PCREL type on loong64

Due to the latest binutils change [1], at least for certain 32-bit
relocs in .eh_frame section, this new type of relocation record is
emitted, leading to breakage on systems with bleeding-edge toolchain
when trying to link with object(s) with such new-style relocs.

Simply treating it the same as the existing reloc types seems enough.

Fixes #54222

[1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=f09482a8747b6fd4c2d59a6a64677d3a3fe1e092

Change-Id: I876d6711d5d4a674bead37e57f9503f1622d1136
Reviewed-on: https://go-review.googlesource.com/c/go/+/420983
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/link/internal/loadelf/ldelf.go