Hi Okash,
On review unfortunately this is expected. ENABLE_PIE=1 was added before clang/LLVM support and indeed it seems this build option was not added in that support.
It was unidentified prior to your posting. I’ll add this lack of support to the project Technical Debt but I cannot say when this might be looked at.
If though you cannot wait and address this issue yourself we would be happy to take contribution patches if you wanted to upstream.
Thanks
Joanna
From: Okash Khawaja via TF-A tf-a@lists.trustedfirmware.org Date: Sunday, 3 April 2022 at 11:59 To: tf-a@lists.trustedfirmware.org tf-a@lists.trustedfirmware.org Subject: [TF-A] ENABLE_PIE with clang Hi,
It seems like setting ENABLE_PIE=1 and compiling with clang/LLVM results in linker errors. E.g. compiling ti/k3 which has ENABLE_PIE=1, with clang and lld version 14.0.1 results in linker errors like "ld.lld: error: can't create dynamic relocation R_AARCH64_ABS64 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output".
Is this expected? If not, are there any plans to fix this?
Thanks, Okash -- TF-A mailing list -- tf-a@lists.trustedfirmware.org To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org