brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 6899241 Raw
59 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj4 5# RUN: lld-link -lldmingw -debug:dwarf -build-id -out:%t.exe -entry:mainfunc -subsystem:console %t.obj6# RUN: llvm-readobj --sections %t.exe | FileCheck %s -check-prefix SECTIONS7# RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck %s -check-prefix RELOCS8# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s -check-prefix HEADERS9# RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s -check-prefix DEBUG10 11# SECTIONS:         Number: 312# SECTIONS-NEXT:    Name: .buildid (2E 62 75 69 6C 64 69 64)13# SECTIONS-NEXT:    VirtualSize: 0x3514# SECTIONS-NEXT:    VirtualAddress: 0x300015# SECTIONS:         Number: 416# SECTIONS-NEXT:    Name: .data (2E 64 61 74 61 00 00 00)17# SECTIONS-NEXT:    VirtualSize: 0x818# SECTIONS-NEXT:    VirtualAddress: 0x400019 20# RELOCS:      BaseReloc [21# RELOCS-NEXT:   Entry {22# RELOCS-NEXT:     Type: DIR6423# RELOCS-NEXT:     Address: 0x400024# RELOCS-NEXT:   }25# RELOCS-NEXT:   Entry {26# RELOCS-NEXT:     Type: ABSOLUTE27# RELOCS-NEXT:     Address: 0x400028# RELOCS-NEXT:   }29# RELOCS-NEXT: ]30 31# HEADERS:     DebugRVA: 0x300032# HEADERS:     DebugSize: 0x1C33 34# DEBUG: DebugDirectory [35# DEBUG:   DebugEntry {36# DEBUG:     Type: CodeView (0x2)37# DEBUG:     SizeOfData: 0x1938# DEBUG:     AddressOfRawData: 0x301C39# DEBUG:     PointerToRawData: 0x81C40 41	.text42	.def	 mainfunc;43	.scl	2;44	.type	32;45	.endef46	.globl	mainfunc47mainfunc:48.Lfunc_begin0:49	xorl	%eax, %eax50	retq51 52	.data53	.globl	ptr54ptr:55	.quad	mainfunc56 57	.section	.debug_info,"dr"58	.quad	.Lfunc_begin059