1 // RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 // Test that we produce the correct relocation types and that the relocation
4 // to .Lfoo uses the symbol and not the section.
8 // CHECK-NEXT: (('st_name', 5) # '.Lfoo'
10 // CHECK: # Relocation 0
11 // CHECK-NEXT: (('r_offset', 2)
12 // CHECK-NEXT: ('r_sym', 1)
13 // CHECK-NEXT: ('r_type', 9)
15 // CHECK-NEXT: # Relocation 1
16 // CHECK-NEXT: (('r_offset',
17 // CHECK-NEXT: ('r_sym',
18 // CHECK-NEXT: ('r_type', 4)
22 leal .Lfoo@GOTOFF(%ebx), %eax
28 .section .rodata.str1.16,"aMS",@progbits,1
30 .asciz "bool llvm::llvm_start_multithreaded()"