1 // RUN
: llvm-mc
-filetype
=obj
-triple i686-pc-mingw32
%s | llvm-readobj
-S
--sr --sd | FileCheck
%s
3 // COFF resolves differences between labels in the same section
, unless that
4 // label is declared with function type.
34 .globl _rust_crate # @rust_crate
39 .long _foobar-_rust_crate
40 .long _foobar-_rust_crate
42 // Even though _baz
and _foobar are in the same
.text section, we keep the
43 // relocation for compatibility with the VC linker
's /guard:cf and /incremental
44 // flags, even on mingw.
47 // CHECK: Relocations [
48 // CHECK-NEXT: 0x12 IMAGE_REL_I386_REL32 _foobar
52 // CHECK: Relocations [
53 // CHECK-NEXT: 0x4 IMAGE_REL_I386_DIR32 _foobar
54 // CHECK-NEXT: 0x8 IMAGE_REL_I386_REL32 _foobar
55 // CHECK-NEXT: 0xC IMAGE_REL_I386_REL32 _foobar
57 // CHECK: SectionData (
58 // CHECK-NEXT: 0000: 00000000 00000000 0C000000 10000000
62 // CHECK: Relocations [
64 // CHECK: SectionData (
65 // CHECK-NEXT: 0000: A1300000 00C3C3