23 lines · plain
1// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s2 3 .text4 .globl f5 .type f,@function6f: # @f7# %bb.0: # %entry8 subl $4, %esp9 calll 4210 incl %eax11 addl $4, %esp12 ret13.Ltmp0:14 .size f, .Ltmp0-f15 16 .section .note.GNU-stack,"",@progbits17 18// CHECK: Relocations [19// CHECK: Section ({{[^ ]+}}) {{[^ ]+}} {20// CHECK-NEXT: 0x4 R_386_PC32 -21// CHECK-NEXT: }22// CHECK-NEXT: ]23