2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: ld.lld -r %t1.o -o %t
4 # RUN: llvm-readobj --file-headers --sections -l --symbols -r %t | FileCheck %s
6 ## We check here that .bss does not occupy the space in file.
7 ## If it would, the SectionHeaderOffset would have offset about 5 megabytes.
10 # CHECK-NEXT: Magic: (7F 45 4C 46)
11 # CHECK-NEXT: Class: 64-bit
12 # CHECK-NEXT: DataEncoding: LittleEndian
13 # CHECK-NEXT: FileVersion: 1
14 # CHECK-NEXT: OS/ABI: SystemV
15 # CHECK-NEXT: ABIVersion: 0
16 # CHECK-NEXT: Unused: (00 00 00 00 00 00 00)
18 # CHECK-NEXT: Type: Relocatable
19 # CHECK-NEXT: Machine: EM_X86_64
20 # CHECK-NEXT: Version:
22 # CHECK-NEXT: ProgramHeaderOffset:
23 # CHECK-NEXT: SectionHeaderOffset: 0xE8
26 # CHECK-NEXT: HeaderSize:
27 # CHECK-NEXT: ProgramHeaderEntrySize:
28 # CHECK-NEXT: ProgramHeaderCount:
29 # CHECK-NEXT: SectionHeaderEntrySize:
30 # CHECK-NEXT: SectionHeaderCount:
31 # CHECK-NEXT: StringTableSectionIndex: