Debian Patches

Status for golang-1.24/1.24.7-1

Patch Description Author Forwarded Bugs Origin Last update
0001-Skip-flaky-TestCrashDumpsAllThreads-on-mips64le.patch Skip flaky TestCrashDumpsAllThreads on mips64le
crash_unix_test.go:145: found 3 instances of main.crashDumpsAllThreadsLoop; expected 4
Shengjing Zhu <zhsj@debian.org> no 2024-02-26
0002-Skip-flaky-TestCrashDumpsAllThreads-on-s390x.patch Skip flaky TestCrashDumpsAllThreads on s390x Shengjing Zhu <zhsj@debian.org> yes upstream 2024-04-16
0003-Skip-TestAsan-on-riscv64.patch skip tsan tests on riscv64 Race detector on riscv64 is not support yet, this is usually no problem on Debian
building because it will be skipped automatically. But others package updated
recently lead to the test failed.
Bo YU <vimer@debian.org> yes debian upstream 2025-09-19
0004-Fix-cgo-on-rv64-gcc-15.patch [PATCH] [release-branch.go1.24] cmd/link: fix cgo on riscv64 when building with gcc-15

It's not currently possible to build cgo programs that are partially
compiled with gcc-15 on riscv64 using the internal linker. There are
two reasons for this.

1. When gcc-15 compiles _cgo_export.c, which contains no actual code,
for a riscv64 target, it emits a label in the .text section called
.Letext0. This label is referred to by another section, .debug_line,
and an entry is generated in the symbol table for it. The Go linker
panics when processing the .Letext0 symbol in _cgo_export.o, as it
occurs in an empty section.
2. GCC-15 is generating additional debug symbols with the .LVUS
prefix, e.g., .LVUS33, that need to be ignored.

We fix the issue by removing the check in
cmd/link/internal/loader/loader.go that panics if we encounter a
symbol in an empty section (the comments preceding this check suggest
it's safe to remove it) and by adding .LVUS to the list of symbol
prefixes to ignore.

For #72840
Fixes #75351

(cherry picked from commit 12e5efd71011fbb5816a1d815e91b5c865fa9a83)
Mark Ryan <markdryan@rivosinc.com> no 2025-04-25

All known versions for source package 'golang-1.24'

Links