<div dir="ltr">We've started seeing linking error in our kernel on ARM64 which I traced back to this change:<div><br></div><div>bin/ld.lld: error: kernel/platform/generic-arm/platform.cpp:553: relocation R_AARCH64_ADR_PREL_PG_HI21 out of range<br></div><div>bin/ld.lld: error: kernel/kernel/vm/vm.cpp:118: relocation R_AARCH64_ADR_PREL_PG_HI21 out of range<br></div><div><br></div><div>The files that are being referred to are:</div><div><br></div><div><a href="https://fuchsia.googlesource.com/magenta/+/master/kernel/platform/generic-arm/platform.cpp#553">https://fuchsia.googlesource.com/magenta/+/master/kernel/platform/generic-arm/platform.cpp#553</a><br></div><div><a href="https://fuchsia.googlesource.com/magenta/+/master/kernel/kernel/vm/vm.cpp#118">https://fuchsia.googlesource.com/magenta/+/master/kernel/kernel/vm/vm.cpp#118</a><br></div><div><br></div><div>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?</div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 13, 2017 at 12:56 PM Rui Ueyama via Phabricator via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ruiu accepted this revision.<br>
ruiu added a comment.<br>
This revision is now accepted and ready to land.<br>
<br>
LGTM<br>
<br>
<br>
<a href="https://reviews.llvm.org/D34123" rel="noreferrer" target="_blank">https://reviews.llvm.org/D34123</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div></div>