[PATCH] D48433: [ELF] - Report unimplemented -z options.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 4 22:31:48 PDT 2018
grimar added a comment.
In https://reviews.llvm.org/D48433#1188567, @dim wrote:
> Ah, only now I've noticed that in the FreeBSD kernel link, we've been using the unsupported `-z common-page-size=` option:
>
> --- kernel.full ---
> linking kernel.full
> ld: error: unknown -z value: common-page-size=4096
> *** [kernel.full] Error code 1
>
>
> This flag was added for ifunc support, but I'm not 100% sure if it is needed at all. Does lld always assume a common page size of 4096 (or whatever the OS reports as `PAGESIZE`)?
I believe, it is always a 4096:
https://github.com/llvm-mirror/lld/blob/master/ELF/Target.h#L80
Except for spark:
https://github.com/llvm-mirror/lld/blob/master/ELF/Arch/SPARCV9.cpp#L44
https://reviews.llvm.org/D48433
More information about the llvm-commits
mailing list