Skip to content

Commit

Permalink
[obj2yaml] - Teach tool to dump program headers.
Browse files Browse the repository at this point in the history
Currently obj2yaml does not dump program headers,
this patch teaches it to do that.

Differential revision: https://reviews.llvm.org/D75342
  • Loading branch information
Georgii Rymar committed Mar 31, 2020
1 parent 7e0e5fa commit b3f13bc
Show file tree
Hide file tree
Showing 3 changed files with 488 additions and 1 deletion.
14 changes: 14 additions & 0 deletions llvm/test/Object/obj2yaml.test
Expand Up @@ -659,6 +659,20 @@ Symbols:
# ELF-AVR-NEXT: Type: ET_EXEC
# ELF-AVR-NEXT: Machine: EM_AVR
# ELF-AVR-NEXT: Flags: [ EF_AVR_ARCH_AVR2 ]
# ELF-AVR-NEXT: ProgramHeaders:
# ELF-AVR-NEXT: - Type: PT_LOAD
# ELF-AVR-NEXT: Flags: [ PF_X, PF_R ]
# ELF-AVR-NEXT: Sections:
# ELF-AVR-NEXT: - Section: .text
# ELF-AVR-NEXT: - Section: .data
# ELF-AVR-NEXT: Align: 0x0000000000000002
# ELF-AVR-NEXT: - Type: PT_LOAD
# ELF-AVR-NEXT: Flags: [ PF_W, PF_R ]
# ELF-AVR-NEXT: Sections:
# ELF-AVR-NEXT: - Section: .data
# ELF-AVR-NEXT: VAddr: 0x0000000000800060
# ELF-AVR-NEXT: PAddr: 0x0000000000000004
# ELF-AVR-NEXT: Align: 0x0000000000000001
# ELF-AVR-NEXT: Sections:
# ELF-AVR-NEXT: - Name: .text
# ELF-AVR-NEXT: Type: SHT_PROGBITS
Expand Down

0 comments on commit b3f13bc

Please sign in to comment.