Displaying 2 results from an estimated 2 matches for "r_aarch64_prel64".
2017 Mar 23
2
Linking android with lld: aarch64 target
...fix of the error below ?
I would like to know why it is caused and how it can be fixed (if possible)
?
The error message is:
~/llvm/build/install_android/linux-x86/clang-3688880/bin/ld.lld: error:
external/boringssl/linux-aarch64/crypto/sha/sha1-armv8.S:1202: can't create
dynamic relocation R_AARCH64_PREL64 against symbol 'OPENSSL_armcap_P'
defined in out/target/product/hikey/obj/STATIC_LIBRARIES/libcrypto_
intermediates/libcrypto.a(sha1-armv8.o)
clang-5.0: error: linker command failed with exit code 1 (use -v to see
invocation)
cheers,
-- Min
-------------- next part --------------
An HTML a...
2017 Mar 24
2
Linking android with lld: aarch64 target
...usually means that
> one or more of the objects hasn't been compiled to be position
> independent -fPIC.
>
OK~ I will check the objects to be linked, if they are compiled (with -fPIC
or not).
It is difficult to tell much more without knowing the compiler and
> linker options. The R_AARCH64_PREL64 relocation is a relative
> relocation, this can require a dynamic relocation if the symbol it
> refers to is preemptible (i.e another definition of the symbol could
> potentially override it at load-time).
>
> Given that the file sha1-armv8.S is an assembler file, and I assume
> t...