[llvm-branch-commits] [ARM, MC] Support FDPIC relocations (PR #82187)

Peter Smith via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Feb 21 05:45:27 PST 2024


https://github.com/smithp35 commented:

Thanks for the update, I'm happy with the changes. I would like to see more options for position independent code in embedded systems.

The other related embedded position independent option for microcontrollers that I'm aware of is `-fropi` and `-frwpi` which is already implemented in clang. This is relocation free with just one static data area accessed as an offset from r9. It works quite well for C code, but doesn't support C++ (vtables and RTTI need relocations) and some forms of static initialisation. 


https://github.com/llvm/llvm-project/pull/82187


More information about the llvm-branch-commits mailing list