2011-04-20 14:01:45 +00:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple i686-pc-mingw32 %s | coff-dump.py | FileCheck %s
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2011-04-21 18:36:50 +00:00
|
|
|
// CHECK: Name = .data
|
|
|
|
// CHECK: SectionData =
|
|
|
|
// CHECK-NEXT: 00 00 00 00 00 00 00 00 - 1C 00 00 00 20 00 00 00 |............ ...|
|
|
|
|
// CHECK: Relocations = [
|
2011-04-20 14:01:45 +00:00
|
|
|
// CHECK-NEXT: 0 = {
|
2011-04-21 18:36:50 +00:00
|
|
|
// CHECK-NEXT: VirtualAddress = 0x4
|
2011-04-20 14:01:45 +00:00
|
|
|
// CHECK-NEXT: SymbolTableIndex =
|
2011-04-21 18:36:50 +00:00
|
|
|
// CHECK-NEXT: Type = IMAGE_REL_I386_DIR32 (6)
|
|
|
|
// CHECK-NEXT: SymbolName = _foobar
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: 1 = {
|
|
|
|
// CHECK-NEXT: VirtualAddress = 0x8
|
|
|
|
// CHECK-NEXT: SymbolTableIndex = 0
|
|
|
|
// CHECK-NEXT: Type = IMAGE_REL_I386_REL32 (20)
|
|
|
|
// CHECK-NEXT: SymbolName = .text
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: 2 = {
|
|
|
|
// CHECK-NEXT: VirtualAddress = 0xC
|
|
|
|
// CHECK-NEXT: SymbolTableIndex = 0
|
2011-04-20 14:01:45 +00:00
|
|
|
// CHECK-NEXT: Type = IMAGE_REL_I386_REL32 (20)
|
|
|
|
// CHECK-NEXT: SymbolName = .text
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|