openwrt/toolchain
Daniel Golle 796b5590ce toolchain: gcc: fix SHF_MERGE check with binutils 2.46
gcc probes the assembler for section merging support with
'.section .rodata.str, "aMS", @progbits, 1', which on 32-bit arm the
'@' comment character truncates. gas 2.46 no longer accepts that form,
and since gcc's %progbits fallback probe reuses the same autoconf cache
variable it never runs, so HAVE_GAS_SHF_MERGE ends up 0. String
literals then land in one plain .rodata per translation unit instead of
per-function mergeable sections, --gc-sections can no longer drop the
strings of dead functions, and the am335x SPL grows by 9.5 kB past its
110592 byte budget.

Backport the upstream fix, which gives the fallback probe its own cache
variable. It is in GCC 15 and later.

Fixes: 82f26df15c ("toolchain: binutils: change default to 2.46")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-14 12:09:01 +01:00
..
binutils toolchain: binutils: fix default version selection 2026-06-26 19:04:24 +02:00
fortify-headers
gcc toolchain: gcc: fix SHF_MERGE check with binutils 2.46 2026-09-14 12:09:01 +01:00
gdb
glibc toolchain: glibc: Update to HEAD from release/2.43/master 2026-05-31 23:48:19 +02:00
kernel-headers
mold
musl
nasm
wrapper
Config.in
Makefile
build_version
info.mk