Commit ec7bcbc
committed
[BOLT][AArch64] Fix LDR relocation type in ADRP+LDR sequence
`R_AARCH64_ADD_ABS_LO12_NC` is for the `ADD` instruction in the `ADRP+ADD`
sequence. For `ADRP+LDR` sequence generated in LDR relaxation, relocation
type for `LDR` should be `R_AARCH64_LDST64_ABS_LO12_NC` if it is 64-bit
integer load or `R_AARCH64_LDST32_ABS_LO12_NC` if 32-bit.1 parent 50faea2 commit ec7bcbc
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
| 644 | + | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
| |||
0 commit comments