24 lines · plain
1// RUN: llvm-mc -triple=aarch64-linux-gnu -filetype=obj -o - %s| llvm-readobj -r - | FileCheck %s2// RUN: llvm-mc -triple=aarch64-linux-gnu_ilp32 -filetype=obj \3// RUN: -o - %s| llvm-readobj -r - | FileCheck -check-prefix=CHECK-ILP32 %s4 .text5// This tests that LLVM doesn't think it can deal with the relocation on the ADRP6// itself (even though it knows everything about the relative offsets of sym and7// the adrp instruction) because its value depends on where this object file's8// .text section gets relocated in memory.9 adrp x0, sym10 adrp x0, :got:sym11 adrp x0, :gottprel:sym12 adrp x0, :tlsdesc:sym13 14 .global sym15sym:16// CHECK: R_AARCH64_ADR_PREL_PG_HI21 sym17// CHECK: R_AARCH64_ADR_GOT_PAGE sym18// CHECK: R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 sym19// CHECK: R_AARCH64_TLSDESC_ADR_PAGE21 sym20// CHECK-ILP32: R_AARCH64_P32_ADR_PREL_PG_HI21 sym21// CHECK-ILP32: R_AARCH64_P32_ADR_GOT_PAGE sym22// CHECK-ILP32: R_AARCH64_P32_TLSIE_ADR_GOTTPREL_PAGE21 sym23// CHECK-ILP32: R_AARCH64_P32_TLSDESC_ADR_PAGE21 sym24