brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · ac76d54 Raw
71 lines · plain
1# RUN: yaml2obj %s -o %t.o2# RUN: llvm-objdump --file-headers --private-headers --section-headers --syms \3# RUN:   --full-contents --dwarf=frames \4# RUN:   --reloc %t.o | FileCheck %s --check-prefixes=CHECK,RELOC5# RUN: llvm-objdump --file-headers --private-headers --section-headers --syms \6# RUN:   --full-contents --dwarf=frames \7# RUN:   --disassemble %t.o | FileCheck %s --check-prefixes=CHECK,DISASM8 9## Test the ordering of most of the output. Note that --disassemble suppresses10## --reloc, so we test them independently.11 12## File headers (-f)13# CHECK: file format elf64-x86-6414# CHECK: architecture: x86_6415# CHECK: start address: 0x000000000000000016## Private headers (-p)17# CHECK: Program Header:18# CHECK: Dynamic Section:19## Section headers (-h)20# CHECK: Sections:21## Symbol table (-t)22# CHECK: SYMBOL TABLE:23## DWARF contents:24# CHECK: .eh_frame contents:25## Relocations (-r)26# RELOC: RELOCATION RECORDS FOR [.text]:27## Section contents (-s)28# CHECK: Contents of section .rel.text:29# CHECK: Contents of section .dynamic:30# CHECK: Contents of section .symtab:31# CHECK: Contents of section .strtab:32# CHECK: Contents of section .shstrtab:33## Disassembly (-d)34# DISASM: Disassembly of section .text:35 36!ELF37FileHeader:38  Class:    ELFCLASS6439  Data:     ELFDATA2LSB40  Type:     ET_REL41  Machine:  EM_X86_6442Sections:43  - Name:    .text44    Type:    SHT_PROGBITS45    Flags:   [ SHF_ALLOC, SHF_EXECINSTR ]46    Content: e800000000e80000000047  - Name: .rel.text48    Type: SHT_REL49    Info: .text50    Relocations:51      - Offset: 0x152        Symbol: foo53        Type: R_X86_64_3254  - Name:    .dynamic55    Type:    SHT_DYNAMIC56    Flags:   [ SHF_WRITE, SHF_ALLOC ]57    EntSize: 0x000000000000001058    Entries:59      - Tag:   DT_INIT60        Value: 0x00000000000006A061      - Tag:   DT_NULL62        Value: 0x000000000000000063  - Name:         .eh_frame64    Type:         SHT_X86_64_UNWIND65    Flags:        [ SHF_ALLOC ]66    AddressAlign: 0x000000000000000167    Content:      0000000068Symbols:69  - Name:    foo70    Section: .text71