1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux-gnu
%s
-o
- | elf-dump | FileCheck
%s
3 // Test that this produces
a R_X86_64_GOT32
and that we have an undefined
4 // reference to _GLOBAL_OFFSET_TABLE_.
7 movl foo@GOTPCREL
(%rip
), %eax
9 // CHECK
: ('_relocations', [
10 // CHECK-NEXT
: # Relocation 0x00000000
11 // CHECK-NEXT
: (('r_offset',
12 // CHECK-NEXT
: ('r_sym',
13 // CHECK-NEXT
: ('r_type', 0x00000003)
14 // CHECK-NEXT
: ('r_addend',
16 // CHECK-NEXT
: # Relocation 0x00000001
17 // CHECK-NEXT
: (('r_offset',
18 // CHECK-NEXT
: ('r_sym',
19 // CHECK-NEXT
: ('r_type', 0x00000009)
20 // CHECK-NEXT
: ('r_addend',
24 // CHECK
: (('st_name', 0x00000005) # '_GLOBAL_OFFSET_TABLE_'
25 // CHECK-NEXT
: ('st_bind', 0x00000001)