1 ## Test writing stub elf when symbol table contains no non-local symbol.
3 # RUN: llvm-ifs --output-elf=%t %s
4 # RUN: llvm-readobj -S %t | FileCheck %s -DCLASS="64-bit (0x2)" -DDE="LittleEndian (0x1)" -DHS=64 -DPHES=56 -DSHES=64 -DDYNSYMAL=8 -DDYNSYMES=24 -DDYNAMICAL=8 -DDYNAMICES=16 -DDYNTABZ=000000000
8 Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
15 # CHECK-NEXT: Index: 0
16 # CHECK-NEXT: Name: (0)
17 # CHECK-NEXT: Type: SHT_NULL
20 # CHECK-NEXT: Address: 0x0
21 # CHECK-NEXT: Offset: 0x0
25 # CHECK-NEXT: AddressAlignment: 0
26 # CHECK-NEXT: EntrySize: 0
28 # CHECK-NEXT: Section {
29 # CHECK-NEXT: Index: 1
30 # CHECK-NEXT: Name: .dynsym
31 # CHECK-NEXT: Type: SHT_DYNSYM
33 # CHECK-NEXT: SHF_ALLOC
35 # CHECK-NEXT: Address:
40 # CHECK-NEXT: AddressAlignment: [[DYNSYMAL]]
41 # CHECK-NEXT: EntrySize: [[DYNSYMES]]
43 # CHECK-NEXT: Section {
44 # CHECK-NEXT: Index: 2
45 # CHECK-NEXT: Name: .dynstr
46 # CHECK-NEXT: Type: SHT_STRTAB
48 # CHECK-NEXT: SHF_ALLOC
50 # CHECK-NEXT: Address:
55 # CHECK-NEXT: AddressAlignment: 1
56 # CHECK-NEXT: EntrySize: 0
58 # CHECK-NEXT: Section {
59 # CHECK-NEXT: Index: 3
60 # CHECK-NEXT: Name: .dynamic
61 # CHECK-NEXT: Type: SHT_DYNAMIC
63 # CHECK-NEXT: SHF_ALLOC
65 # CHECK-NEXT: Address:
70 # CHECK-NEXT: AddressAlignment: [[DYNAMICAL]]
71 # CHECK-NEXT: EntrySize: [[DYNAMICES]]
73 # CHECK-NEXT: Section {
74 # CHECK-NEXT: Index: 4
75 # CHECK-NEXT: Name: .shstrtab
76 # CHECK-NEXT: Type: SHT_STRTAB
79 # CHECK-NEXT: Address:
84 # CHECK-NEXT: AddressAlignment: 1
85 # CHECK-NEXT: EntrySize: 0