1# Show that llvm-readobj can handle an empty .dynamic section. 2 3# RUN: yaml2obj %s -o %t.o 4# RUN: llvm-readobj --dynamic-table %t.o | FileCheck %s --check-prefix LLVM 5# RUN: llvm-readelf --dynamic-table %t.o | FileCheck %s --check-prefix GNU --allow-empty 6 7# LLVM: File: {{.*}}.o 8# LLVM-NOT: DynamicSection 9# GNU-NOT: {{.}} 10 11!ELF 12FileHeader: 13 Class: ELFCLASS64 14 Data: ELFDATA2LSB 15 Type: ET_EXEC 16Sections: 17 - Name: .dynamic 18 Type: SHT_DYNAMIC 19 Address: 0x1000 20ProgramHeaders: 21 - Type: PT_LOAD 22 VAddr: 0x1000 23 FirstSec: .dynamic 24 LastSec: .dynamic 25 - Type: PT_DYNAMIC 26 VAddr: 0x1000 27 FirstSec: .dynamic 28 LastSec: .dynamic 29