[PATCH] D23352: [ELF] - Linkerscript: implemented simple heuristic for placing orphan sections.

Michael Spencer via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 11:56:57 PDT 2016


On Tue, Aug 16, 2016 at 3:50 AM, George Rimar via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> grimar added a comment.
>
> In https://reviews.llvm.org/D23352#516156, @silvas wrote:
>
>> - LLD does not honor MAXPAGESIZE (needs to be 2M for amd64), this causes the kernel load address to get set far too low (at 4K, close to where the loader lives), which clobbers the loader's text / data structures when copying in the kernel :)
>
>
> So I wonder do we want implement -z max-page-size (https://reviews.llvm.org/D19600, this will require adding that option to FreeBSD cmd line I think)
> or change X86_64TargetInfo::PageSize to handle this ?

COMMONPAGESIZE and MAXPAGESIZE are different values. gnu ld has them
set separately to 0x1000 and 2MiB. I just added a MaxPageSize variable
to TargetInfo.

- Michael Spencer

>
>
> https://reviews.llvm.org/D23352
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list