[lld] r290986 - ELF: Round p_memsz of the PT_GNU_RELRO program header up to the page size.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 5 15:02:23 PST 2017


Peter Collingbourne <peter at pcc.me.uk> writes:

> It looks like bfd and gold can both start their relro in the middle of a
> page, but it will extend to the start of the page following the relro
> region. It seems to be in fact the end address that is rounded down, not
> the size.

I see. Starting in the middle of the page is probably just the regular
optimization to save disk space by overlapping the PT_LOADs.

Thanks for checking.

Cheers,
Rafael


More information about the llvm-commits mailing list