[PATCH] D64455: MC: AArch64: Add support for pg_hi21_nc relocation specifier.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 09:37:56 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL365661: MC: AArch64: Add support for pg_hi21_nc relocation specifier. (authored by pcc, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D64455?vs=208843&id=208991#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64455/new/
https://reviews.llvm.org/D64455
Files:
llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/trunk/test/MC/AArch64/adrp-relocation2.s
Index: llvm/trunk/test/MC/AArch64/adrp-relocation2.s
===================================================================
--- llvm/trunk/test/MC/AArch64/adrp-relocation2.s
+++ llvm/trunk/test/MC/AArch64/adrp-relocation2.s
@@ -0,0 +1,7 @@
+// RUN: llvm-mc -triple=aarch64-linux-gnu -filetype=obj -o - %s | llvm-readobj -r - | FileCheck %s
+
+// CHECK: R_AARCH64_ADR_PREL_PG_HI21_NC sym
+adrp x0, :pg_hi21_nc:sym
+
+.globl sym
+sym:
Index: llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2502,6 +2502,7 @@
} else if (DarwinRefKind != MCSymbolRefExpr::VK_PAGE &&
DarwinRefKind != MCSymbolRefExpr::VK_GOTPAGE &&
DarwinRefKind != MCSymbolRefExpr::VK_TLVPPAGE &&
+ ELFRefKind != AArch64MCExpr::VK_ABS_PAGE_NC &&
ELFRefKind != AArch64MCExpr::VK_GOT_PAGE &&
ELFRefKind != AArch64MCExpr::VK_GOTTPREL_PAGE &&
ELFRefKind != AArch64MCExpr::VK_TLSDESC_PAGE) {
@@ -3267,6 +3268,7 @@
.Case("dtprel_hi12", AArch64MCExpr::VK_DTPREL_HI12)
.Case("dtprel_lo12", AArch64MCExpr::VK_DTPREL_LO12)
.Case("dtprel_lo12_nc", AArch64MCExpr::VK_DTPREL_LO12_NC)
+ .Case("pg_hi21_nc", AArch64MCExpr::VK_ABS_PAGE_NC)
.Case("tprel_g2", AArch64MCExpr::VK_TPREL_G2)
.Case("tprel_g1", AArch64MCExpr::VK_TPREL_G1)
.Case("tprel_g1_nc", AArch64MCExpr::VK_TPREL_G1_NC)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64455.208991.patch
Type: text/x-patch
Size: 1672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/455f05d7/attachment.bin>
More information about the llvm-commits
mailing list