[PATCH] D34123: Set non alloc section address to 0 earlier

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 14 12:05:43 PDT 2017


We've started seeing linking error in our kernel on ARM64 which I traced
back to this change:

bin/ld.lld: error: kernel/platform/generic-arm/platform.cpp:553: relocation
R_AARCH64_ADR_PREL_PG_HI21 out of range
bin/ld.lld: error: kernel/kernel/vm/vm.cpp:118: relocation
R_AARCH64_ADR_PREL_PG_HI21 out of range

The files that are being referred to are:

https://fuchsia.googlesource.com/magenta/+/master/kernel/platform/generic-arm/platform.cpp#553
https://fuchsia.googlesource.com/magenta/+/master/kernel/kernel/vm/vm.cpp#118

Both of these are computing a difference between _start and _end which are
symbols defined in the kernel linker script. Do you know what might be the
issue? Shall I file a bug for this?

On Tue, Jun 13, 2017 at 12:56 PM Rui Ueyama via Phabricator via
llvm-commits <llvm-commits at lists.llvm.org> wrote:

> ruiu accepted this revision.
> ruiu added a comment.
> This revision is now accepted and ready to land.
>
> LGTM
>
>
> https://reviews.llvm.org/D34123
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170614/fa7537ad/attachment.html>


More information about the llvm-commits mailing list