We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Seems like all related armclang options (-fpic, -fropi, -frwpi) are not supported in aarch64 state, so is it possible to generate position independent code for aarch64 target?
Thanks
-Oscar
Hi Oscar Huang
Are you still looking for help with this question, or did you find the solution?
I haven't got a solution yet. So if any help is appreciated.
Could you develop your goals about this, i feel expert need more information about this to help you.
Regards
Sorry to reply to this thread, I have similar question
Working on a bare metal code, Cortex-A53 in 64bit mode and would like to be able to load a binary (PIE) at a location available (so the available location could change) .
Hi Vignesh, thank you for reopening this thread.
The latest Arm Compiler for Embedded 6.17 adds support for bare metal PIE code in AArch64 (and AArch32):https://developer.arm.com/documentation/100748/0617/Mapping-Code-and-Data-to-the-Target/Bare-metal-Position-Independent-Executables
The compiler is provided as part of Development Studio 2021.2 or can be downloaded separately
https://developer.arm.com/tools-and-software/embedded/arm-development-studio/downloads
https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6
Hi Ronan,
Thanks a lot for the info, really appreciate that.
Vignesh