[PATCH v10] elf: Support THP segment load with madvise enabled THP

Andreas Schwab schwab@suse.de
Wed May 27 14:21:59 GMT 2026


On Mai 26 2026, Adhemerval Zanella Netto wrote:

> It seems RISCV default linker scripts sets p_vaddr to 0, different than
> x86_64/aarch64, and /proc/sys/vm/mmap_min_addr is a non-zero value:

The difference is that x86-64 and aarch64 put executables at 0x400000
by default, whereas riscv64 uses 0x100000.  You get the same effect on
x86-64 and aarch64 if you increase the page size beyond 0x400000.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list