blob: c44245d078b236890d596103e87be910d640cc13 [file] [log] [blame]
Rafael Espindola28f9ac82010-10-04 18:44:25 +00001// 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
7// CHECK: ('_relocations', [
8// CHECK-NEXT: # Relocation 0
9// CHECK-NEXT: (('r_offset',
10// CHECK-NEXT: ('r_sym',
11// CHECK-NEXT: ('r_type', 3)
12// CHECK-NEXT: ('r_addend',
13// CHECK-NEXT: ),
14// CHECK-NEXT: ])