musl/ldso
Yao Zi 5ccf05d86d ldso: don't reclaim zero-memory-sized segments
Some weird linkers may emit PT_LOAD segments with memsz = 0. ELF
specification does not forbid this, but such a segment with non-zero
p_vaddr will result in reclaiming of invalid memory address.

This patch skips such segments during reclaiming for better
compatibility.
2025-02-09 09:03:50 -05:00
..
dlstart.c process DT_RELR relocations in ldso-startup/static-pie 2022-09-12 08:30:36 -04:00
dynlink.c ldso: don't reclaim zero-memory-sized segments 2025-02-09 09:03:50 -05:00