[PATCH] D23610: [ARM] Add pre-defined macros for ROPI, RWPI and FPIC

Oliver Stannard via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 16 06:17:25 PDT 2017


olista01 added a comment.

My patch to the ACLE has now been accepted, so it will be in the next release. This is the wording:

  __ARM_ROPI is defined to 1 if the translation unit is being compiled in read-only position independent mode. In this mode, all read-only data and functions are at a link-time constant offset from the program counter.
  
  __ARM_RWPI is defined to 1 if the translation unit is being compiled in read-write position independent mode. In this mode, all writable data is at a link-time constant offset from the static base register defined in [AAPCS].
  
  The ROPI and RWPI position independence modes are compatible with each other, so the __ARM_ROPI and __ARM_RWPI macros may be defined at the same time.

We're not adding the FPIC macro to the ACLE, because that isn't ARM-specific.


Repository:
  rL LLVM

https://reviews.llvm.org/D23610





More information about the cfe-commits mailing list