forked from OSchip/llvm-project
60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
# RUN: lld -flavor link -out %t1 -subsystem console -force \
|
|
# RUN: -- %p/Inputs/hello.obj \
|
|
# RUN: && llvm-readobj -sections %t1 | FileCheck %s
|
|
|
|
CHECK: Format: COFF-i386
|
|
CHECK: Arch: i386
|
|
CHECK: AddressSize: 32bit
|
|
CHECK: Sections [
|
|
CHECK: Section {
|
|
CHECK: Number: 1
|
|
CHECK: Name: .text (2E 74 65 78 74 00 00 00)
|
|
CHECK: VirtualSize: 0x1C
|
|
CHECK: VirtualAddress: 0x1000
|
|
CHECK: RawDataSize: 28
|
|
CHECK: PointerToRawData: 0x200
|
|
CHECK: PointerToRelocations: 0x0
|
|
CHECK: PointerToLineNumbers: 0x0
|
|
CHECK: RelocationCount: 0
|
|
CHECK: LineNumberCount: 0
|
|
CHECK: Characteristics [ (0x60000020)
|
|
CHECK: IMAGE_SCN_CNT_CODE (0x20)
|
|
CHECK: IMAGE_SCN_MEM_EXECUTE (0x20000000)
|
|
CHECK: IMAGE_SCN_MEM_READ (0x40000000)
|
|
CHECK: ]
|
|
CHECK: }
|
|
CHECK: Section {
|
|
CHECK: Number: 2
|
|
CHECK: Name: .rdata (2E 72 64 61 74 61 00 00)
|
|
CHECK: VirtualSize: 0x18
|
|
CHECK: VirtualAddress: 0x2000
|
|
CHECK: RawDataSize: 24
|
|
CHECK: PointerToRawData: 0x400
|
|
CHECK: PointerToRelocations: 0x0
|
|
CHECK: PointerToLineNumbers: 0x0
|
|
CHECK: RelocationCount: 0
|
|
CHECK: LineNumberCount: 0
|
|
CHECK: Characteristics [ (0x40000040)
|
|
CHECK: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
|
|
CHECK: IMAGE_SCN_MEM_READ (0x40000000)
|
|
CHECK: ]
|
|
CHECK: }
|
|
CHECK: Section {
|
|
CHECK: Number: 3
|
|
CHECK: Name: .data (2E 64 61 74 61 00 00 00)
|
|
CHECK: VirtualSize: 0x74
|
|
CHECK: VirtualAddress: 0x3000
|
|
CHECK: RawDataSize: 116
|
|
CHECK: PointerToRawData: 0x600
|
|
CHECK: PointerToRelocations: 0x0
|
|
CHECK: PointerToLineNumbers: 0x0
|
|
CHECK: RelocationCount: 0
|
|
CHECK: LineNumberCount: 0
|
|
CHECK: Characteristics [ (0xC0000040)
|
|
CHECK: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
|
|
CHECK: IMAGE_SCN_MEM_READ (0x40000000)
|
|
CHECK: IMAGE_SCN_MEM_WRITE (0x80000000)
|
|
CHECK: ]
|
|
CHECK: }
|
|
CHECK: ]
|