xref: /llvm-project/lldb/test/Shell/ObjectFile/ELF/base-address.yaml (revision 62e3b2ec1d8e54d2b377623c485d5399bc94521f)
1# RUN: yaml2obj %s -o %t
2# RUN: lldb-test object-file %t | FileCheck %s
3
4# CHECK: Base VM address: 0x400000
5
6--- !ELF
7FileHeader:      
8  Class:           ELFCLASS64
9  Data:            ELFDATA2LSB
10  Type:            ET_EXEC
11  Machine:         EM_X86_64
12  Entry:           0x0000000000400078
13Sections:        
14  - Name:            .pad
15    Type:            SHT_PROGBITS
16    Flags:           [ SHF_ALLOC ]
17    Address:         0x0000000000400000
18    AddressAlign:    0x0000000000001000
19    Size:            0x78
20  - Name:            .text
21    Type:            SHT_PROGBITS
22    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
23    Address:         0x0000000000400078
24    AddressAlign:    0x0000000000000001
25    Content:         48C7C0E700000048C7C72F0000000F05CC
26ProgramHeaders:
27  - Type: PT_LOAD
28    Flags: [ PF_X, PF_R ]
29    VAddr: 0x400000
30    Align: 0x200000
31    FirstSec: .pad
32    LastSec:  .text
33...
34