[ELF][test] Fix R_AARCH64_ADR_PREL_PG_HI21 typo
authorFangrui Song <i@maskray.me>
Tue, 31 Aug 2021 20:09:54 +0000 (13:09 -0700)
committerFangrui Song <i@maskray.me>
Tue, 31 Aug 2021 20:09:55 +0000 (13:09 -0700)
Found by redfast00

lld/test/ELF/aarch64-relocs.s

index 089da40..0018744 100644 (file)
@@ -19,7 +19,7 @@ msgend:
 # CHECK:        4:
 # #4 is the adr immediate value.
 
-.section .R_AARCH64_ADR_PREL_PG_H121,"ax",@progbits
+.section .R_AARCH64_ADR_PREL_PG_HI21,"ax",@progbits
   adrp x1,mystr
 mystr:
   .asciz "blah"
@@ -27,7 +27,7 @@ mystr:
 
 # PAGE(S + A) - PAGE(P) = PAGE(210136) - PAGE(0x210132) = 0
 #
-# CHECK: Disassembly of section .R_AARCH64_ADR_PREL_PG_H121:
+# CHECK: Disassembly of section .R_AARCH64_ADR_PREL_PG_HI21:
 # CHECK-EMPTY:
 # CHECK-NEXT: <$x.2>:
 # CHECK-NEXT:   210132:       01 00 00 90     adrp    x1, 0x210000