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

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 16:39:13 PDT 2017


Petr Hosek <phosek at chromium.org> writes:

> 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?

It is probably not this change as it only impacts non alloc sections.

Yes, please open a bug.

Cheers,
Rafael


More information about the llvm-commits mailing list