diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-10-09 16:28:57 -0700 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2026-11-05 15:22:30 +0100 |
| commit | 07cd3ed4153991cda356f24323b8ee3af8bc7c5a (patch) | |
| tree | eb5ddb3a56d643e3e6119df777e82e56ab8fd759 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | 255d9dbd936f7db8b963e82429f6e57cd9d48999 (diff) | |
MIPS: boot: compressed: place .rodata.* and discard .MIPS.abiflags
The decompressor linker script only collects .rodata. Clang emits the
decompressor's strings in .rodata.str1.1 and also produces a
.MIPS.abiflags section. GNU ld places such orphans next to similar
sections, but ld.lld puts them after .bss:
[ 5] .bss NOBITS 809246c0 5346b8 402010
[ 6] .MIPS.abiflags ... 80d266d0 9366d0 000018
[ 7] .rodata.str1.1 PROGBITS 80d266e8 9366e8 000164
This pulls the 4 MB of .bss (mostly the boot heap) into the file and
leaves the strings beyond _end. For BCM47XX vmlinuz grows from 5.4 MB
to 9.6 MB.
Collect .rodata.* with .rodata, and discard .MIPS.abiflags and
.gnu.attributes as arch/mips/kernel/vmlinux.lds.S does.
Assisted-by: LLM
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
