got.s revision 607d1f6d3216b647c07965bafae8d1aba6312136
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  | FileCheck %s
2
3// Test that this produces a R_X86_64_GOT32.
4
5        movl	foo@GOT, %eax
6        movl	foo@GOTPCREL(%rip), %eax
7
8// CHECK:      ('_relocations', [
9// CHECK-NEXT:   # Relocation 0
10// CHECK-NEXT:    (('r_offset',
11// CHECK-NEXT:     ('r_sym',
12// CHECK-NEXT:     ('r_type', 3)
13// CHECK-NEXT:     ('r_addend',
14// CHECK-NEXT:    ),
15// CHECK-NEXT:   # Relocation 1
16// CHECK-NEXT:    (('r_offset',
17// CHECK-NEXT:     ('r_sym',
18// CHECK-NEXT:     ('r_type', 9)
19// CHECK-NEXT:     ('r_addend',
20// CHECK-NEXT:    ),
21// CHECK-NEXT:   ])
22