This is because I'm using the next iteration of LoongArch GNU toolchain that includes support for the "new-style" relocs, producing relocs unknown to cmd/link/internal/loadelf. debug/elf and several other places need syncing.
I don't plan to immediately change codegen and remove support for generating old-style relocs, since doing so will break compatibility with the binutils-{2.38,2.39} and gcc-12.1 combo that doesn't recognize the new reloc types.
This might need backporting but I fear the change is too big for a 1.19.x point release.
EDIT: toolchain versions
$ ld --version
GNU ld (Gentoo 9999 p0) 2.39.50.20220729
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
$ gcc --version
gcc (Gentoo 13.0.0 p, commit 1a5882abf01ae085e999ddcf4d208105e21e1a0d) 13.0.0 20220729 (experimental)
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes (found during packaging testing)
What operating system and processor architecture are you using (
go env
)?Gentoo Linux, Loongson 3A5000.
go env
OutputWhat did you do?
cd $GOROOT/src/cmd/link && go test ./...
What did you expect to see?
all tests pass
What did you see instead?
This is because I'm using the next iteration of LoongArch GNU toolchain that includes support for the "new-style" relocs, producing relocs unknown to
cmd/link/internal/loadelf
.debug/elf
and several other places need syncing.I don't plan to immediately change codegen and remove support for generating old-style relocs, since doing so will break compatibility with the binutils-{2.38,2.39} and gcc-12.1 combo that doesn't recognize the new reloc types.
This might need backporting but I fear the change is too big for a 1.19.x point release.
EDIT: toolchain versions
The text was updated successfully, but these errors were encountered: