brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c578835 Raw
39 lines · plain
1## Show that dumping occurs even if there is no PT_DYNAMIC header.2## This is inconsistent with the GNU behavior, but seems to be more reasonable.3# RUN: yaml2obj %s -o %t.no-phdr4# RUN: llvm-readobj --dynamic-table %t.no-phdr | FileCheck %s --check-prefix=LLVM5# RUN: llvm-readelf --dynamic-table %t.no-phdr | FileCheck %s --check-prefix=GNU6 7# LLVM:      File: {{.*}}.no-phdr8# LLVM-NEXT: Format: elf64-x86-649# LLVM-NEXT: Arch: x86_6410# LLVM-NEXT: AddressSize: 64bit11# LLVM-NEXT: LoadName:{{ *}}12# LLVM-NEXT: DynamicSection [ (1 entries)13# LLVM-NEXT:   Tag                Type Name/Value14# LLVM-NEXT:   0x0000000000000000 NULL 0x015# LLVM-NEXT: ]16 17# GNU:      Dynamic section at offset 0x78 contains 1 entries:18# GNU-NEXT: Tag                Type   Name/Value19# GNU-NEXT: 0x0000000000000000 (NULL) 0x020 21--- !ELF22FileHeader:23  Class:   ELFCLASS6424  Data:    ELFDATA2LSB25  Type:    ET_EXEC26  Machine: EM_X86_6427Sections:28  - Name:    .dynamic29    Type:    SHT_DYNAMIC30    Address: 0x100031    Entries:32      - Tag:   DT_NULL33        Value: 034ProgramHeaders:35  - Type:     PT_LOAD36    VAddr:    0x100037    FirstSec: .dynamic38    LastSec:  .dynamic39