mirror of https://github.com/openwrt/openwrt.git
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:
|
||
|---|---|---|
| .. | ||
| files | ||
| final | ||
| initial | ||
| minimal | ||
| patches-13.x | ||
| patches-14.x | ||
| patches-15.x | ||
| Config.in | ||
| Config.version | ||
| common.mk | ||
| exclude-testsuite | ||