Skip to content

Commit

Permalink
[aaelf32] Note that R_ARM_PREL31 can create veneers
Browse files Browse the repository at this point in the history
Since https://reviews.llvm.org/D25721, LLD has assumed this. I assume
other linkers behave similarly, and LLVM's ARM backend also assumes that
R_ARM_PREL31 is PLT-generating. Update the ABI to reflect that.
  • Loading branch information
smeenai committed Feb 15, 2024
1 parent 5b9c145 commit 64bd99e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aaelf32/aaelf32.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2231,8 +2231,8 @@ to effect the transition to Thumb state. Conditional function call instructions

A linker may use a veneer (a sequence of instructions) to implement the
relocated branch if the relocation is one of R_ARM_PC24, R_ARM_CALL,
R_ARM_JUMP24, (or, in Thumb state, R_ARM_THM_CALL, R_ARM_THM_JUMP24, or
R_ARM_THM_JUMP19) and:
R_ARM_JUMP24, R_ARM_PREL31, (or, in Thumb state, R_ARM_THM_CALL,
R_ARM_THM_JUMP24, or R_ARM_THM_JUMP19) and:

* The target symbol has type STT_FUNC

Expand Down

0 comments on commit 64bd99e

Please sign in to comment.