2013-04-12 04:06:46 +00:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple i686-pc-mingw32 %s | llvm-readobj -s -sr -sd | FileCheck %s
|
2011-04-20 14:01:45 +00:00
|
|
|
|
|
|
|
.def _foobar;
|
|
|
|
.scl 2;
|
|
|
|
.type 32;
|
|
|
|
.endef
|
|
|
|
.text
|
2011-04-21 18:36:50 +00:00
|
|
|
.long 0
|
2011-04-20 14:01:45 +00:00
|
|
|
.globl _foobar
|
|
|
|
.align 16, 0x90
|
|
|
|
_foobar: # @foobar
|
|
|
|
# BB#0:
|
|
|
|
ret
|
|
|
|
|
|
|
|
.data
|
|
|
|
.globl _rust_crate # @rust_crate
|
|
|
|
.align 4
|
|
|
|
_rust_crate:
|
2011-04-21 18:36:50 +00:00
|
|
|
.long 0
|
|
|
|
.long _foobar
|
|
|
|
.long _foobar-_rust_crate
|
2011-04-20 14:01:45 +00:00
|
|
|
.long _foobar-_rust_crate
|
|
|
|
|
2013-04-12 04:06:46 +00:00
|
|
|
// CHECK: Name: .data
|
|
|
|
// CHECK: Relocations [
|
|
|
|
// CHECK-NEXT: 0x4 IMAGE_REL_I386_DIR32 _foobar
|
|
|
|
// CHECK-NEXT: 0x8 IMAGE_REL_I386_REL32 .text
|
|
|
|
// CHECK-NEXT: 0xC IMAGE_REL_I386_REL32 .text
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK: SectionData (
|
|
|
|
// CHECK-NEXT: 0000: 00000000 00000000 1C000000 20000000
|
|
|
|
// CHECK-NEXT: )
|