brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 006db51 Raw
48 lines · plain
1# RUN: yaml2obj %s -o %t2 3## Check we print both VMA and LMA correctly when dumping section headers.4# RUN: llvm-objdump --section-headers %t | FileCheck %s5 6# CHECK:      Sections:7# CHECK-NEXT: Idx Name  Size     VMA              LMA              Type8# CHECK-NEXT:   0       00000000 0000000000000000 00000000000000009# CHECK-NEXT:   1 .text 00000004 0000000000001000 0000000000002000 TEXT10# CHECK-NEXT:   2 .init 00000004 0000000000001010 0000000000001010 TEXT11# CHECK-NEXT:   3 .data 00000004 0000000000002000 0000000000003000 DATA12 13!ELF14FileHeader:15  Class:           ELFCLASS6416  Data:            ELFDATA2LSB17  Type:            ET_EXEC18  Machine:         EM_X86_6419Sections:20  - Name:            .text21    Type:            SHT_PROGBITS22    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]23    Content:         "00000000"24    Address:         0x0000100025  - Name:            .init26    Type:            SHT_PROGBITS27    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]28    Content:         "00000000"29    Address:         0x0000101030  - Name:            .data31    Type:            SHT_PROGBITS32    Flags:           [ SHF_ALLOC ]33    Content:         "00000000"34    Address:         0x0000200035ProgramHeaders:36  - Type:     PT_LOAD37    Flags:    [ PF_X, PF_R ]38    VAddr:    0x0000100039    PAddr:    0x0000200040    FirstSec: .text41    LastSec:  .init42  - Type:     PT_LOAD43    Flags:    [ PF_R ]44    VAddr:    0x0000200045    PAddr:    0x0000300046    FirstSec: .data47    LastSec:  .data48