elf-reloc-pcreladdressing.s revision 72062f5744557e270a38192554c3126ea5f97434
1// RUN: llvm-mc -arch=aarch64 -filetype=obj %s -o - | \
2// RUN:   elf-dump | FileCheck -check-prefix=OBJ %s
3
4        adr x2, some_label
5        adrp x5, some_label
6
7        adrp x5, :got:some_label
8        ldr x0, [x5, #:got_lo12:some_label]
9// OBJ: .rela.text
10
11// OBJ: 'r_offset', 0x0000000000000000
12// OBJ-NEXT:  'r_sym', 0x00000005
13// OBJ-NEXT: 'r_type', 0x00000112
14
15// OBJ: 'r_offset', 0x0000000000000004
16// OBJ-NEXT:  'r_sym', 0x00000005
17// OBJ-NEXT: 'r_type', 0x00000113
18
19// OBJ: 'r_offset', 0x0000000000000008
20// OBJ-NEXT:  'r_sym', 0x00000005
21// OBJ-NEXT: 'r_type', 0x00000137
22
23// OBJ: 'r_offset', 0x000000000000000c
24// OBJ-NEXT:  'r_sym', 0x00000005
25// OBJ-NEXT: 'r_type', 0x00000138
26
27// OBJ: .symtab
28// OBJ: Symbol 5
29// OBJ-NEXT: some_label