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.
Hi,
I am using ARM DS-5 version 5.29.1 and trying to develop a baremetal Position Independent Executable project for Cortex-A72.But most pic/pid compiler option and linker option dose not support for arch64,I do not know where can I find related documents and example.
Thanks
HiThere's a tutorial and example for DS-5 and PIE for AArch64 at:https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/easy-as-pie----creating-bare-metal-position-independent-executables-with-arm-compiler-6Please can you try that?Stephen
HI:
Thanks for your reply,but the above https link refer to PIE for arch32,however I need some example for arch64. Arm ® Compiler Version 6.13 Reference Guide says it does not support for aarch64 (" B1.7 -fbare-metal-pie: Note: • This option is unsupported for AArch64 state.• The bare-metal PIE feature is deprecated").Can you help me for another example for aarch64?Thanks.
Best Regard!
Hi again,Sorry, my mistake, you are right, "-fbare-metal-pie" won't work for you.However, recent versions of Arm Compiler 6 now support "-fpic" for AArch64:developer.arm.com/.../-fpic---fno-picYou'll need Arm Compiler 6.13 or later - unfortunately, the Arm Compiler 6.10.1 that comes with DS-5 v5.29.1 is too old.DS-5 has been superseded by Arm Development Studio. Arm DS 2020.0 comes with Arm Compiler 6.14.You can download a free 30-day evaluation of Arm DS from https://developer.arm.com/tools-and-software/embedded/arm-development-studioHope this helps
Stephen