Skip to content

Commit

Permalink
[ELF][test] Fix R_AARCH64_ADR_PREL_PG_HI21 typo
Browse files Browse the repository at this point in the history
Found by redfast00
  • Loading branch information
MaskRay committed Aug 31, 2021
1 parent 928cad5 commit f9277ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lld/test/ELF/aarch64-relocs.s
Expand Up @@ -19,15 +19,15 @@ 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"
.size mystr, 4

# 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
Expand Down

0 comments on commit f9277ca

Please sign in to comment.