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

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed May 27 17:00:21 GMT 2026



On 27/05/26 11:21, Andreas Schwab wrote:
> 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.
> 

So should we use  -Wl,-Ttext-segment=0x200000 or --image-base on riscv or
define a different large page size on this patch?


More information about the Libc-alpha mailing list