[PATCH] D24891: [ELF] Support -z max-page-size option

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 09:19:14 PDT 2016


> Slightly related. There were problems in the past because lld was aliasing MAXPAGESIZE and PAGE_SIZE on x86-64 and this caused the FreeBSD kernel to crash when linked with lld so I want to be sure that configuration is tested when experimenting with page sizes. I assume that if we mimic what bfd does we should be OK in that case, as the kernel is currently linked with a very old (2.17) version of it.

Given that the impact of using a larger page in the current lld code
is to add a lot of padding, it is possible that the change just hid
some other bug. But yes, we should test.

Cheers,
Rafael


More information about the llvm-commits mailing list