[PATCH] D18330: [ELF/AArch64] Implemented set of R_AARCH64_TLSDESC_* relocations.

Adhemerval Zanella via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 09:18:04 PDT 2016


zatrazz added a comment.

In http://reviews.llvm.org/D18330#380245, @emaste wrote:

> With this and http://reviews.llvm.org/D18331, http://reviews.llvm.org/D18332, http://reviews.llvm.org/D18333 applied, linking FreeBSD/arm64 with lld still gives me:
>
>   relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used when making a shared object; recompile with -fPIC.
>   relocation R_AARCH64_LDST64_ABS_LO12_NC cannot be used when making a shared object; recompile with -fPIC.
>   relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used when making a shared object; recompile with -fPIC.
>   relocation R_AARCH64_LDST64_ABS_LO12_NC cannot be used when making a shared object; recompile with -fPIC.
>   relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used when making a shared object; recompile with -fPIC.
>   relocation R_AARCH64_LDST64_ABS_LO12_NC cannot be used when making a shared object; recompile with -fPIC.
>   relocation R_AARCH64_LDST64_ABS_LO12_NC cannot be used when making a shared object; recompile with -fPIC.
>   relocation R_AARCH64_LDST64_ABS_LO12_NC cannot be used when making a shared object; recompile with -fPIC.
>
>
> This happens when linking libc.so and is proving slightly tricky to track down.


Does this happen while trying to bootstrap or using a smaller testscase?


Repository:
  rL LLVM

http://reviews.llvm.org/D18330





More information about the llvm-commits mailing list