Home | History | Annotate | Download | only in llvm-readobj
      1 RUN: llvm-readobj -program-headers %p/../../Object/Inputs/program-headers.elf-i386 \
      2 RUN:     | FileCheck %s -check-prefix ELF-I386
      3 RUN: llvm-readobj -program-headers %p/../../Object/Inputs/program-headers.elf-x86-64 \
      4 RUN:     | FileCheck %s -check-prefix ELF-X86-64
      5 
      6 ELF-I386:      ProgramHeaders [
      7 ELF-I386-NEXT:   ProgramHeader {
      8 ELF-I386-NEXT:     Type: PT_LOAD (0x1)
      9 ELF-I386-NEXT:     Offset: 0x0
     10 ELF-I386-NEXT:     VirtualAddress: 0x8048000
     11 ELF-I386-NEXT:     PhysicalAddress: 0x8048000
     12 ELF-I386-NEXT:     FileSize: 308
     13 ELF-I386-NEXT:     MemSize: 308
     14 ELF-I386-NEXT:     Flags [ (0x5)
     15 ELF-I386-NEXT:       PF_R (0x4)
     16 ELF-I386-NEXT:       PF_X (0x1)
     17 ELF-I386-NEXT:     ]
     18 ELF-I386-NEXT:     Alignment: 4096
     19 ELF-I386-NEXT:   }
     20 ELF-I386-NEXT:   ProgramHeader {
     21 ELF-I386-NEXT:     Type: PT_GNU_STACK (0x6474E551)
     22 ELF-I386-NEXT:     Offset: 0x0
     23 ELF-I386-NEXT:     VirtualAddress: 0x0
     24 ELF-I386-NEXT:     PhysicalAddress: 0x0
     25 ELF-I386-NEXT:     FileSize: 0
     26 ELF-I386-NEXT:     MemSize: 0
     27 ELF-I386-NEXT:     Flags [ (0x6)
     28 ELF-I386-NEXT:       PF_R (0x4)
     29 ELF-I386-NEXT:       PF_W (0x2)
     30 ELF-I386-NEXT:     ]
     31 ELF-I386-NEXT:     Alignment: 4
     32 ELF-I386-NEXT:   }
     33 ELF-I386-NEXT: ]
     34 
     35 ELF-X86-64:      ProgramHeaders [
     36 ELF-X86-64-NEXT:   ProgramHeader {
     37 ELF-X86-64-NEXT:     Type: PT_LOAD (0x1)
     38 ELF-X86-64-NEXT:     Offset: 0x0
     39 ELF-X86-64-NEXT:     VirtualAddress: 0x400000
     40 ELF-X86-64-NEXT:     PhysicalAddress: 0x400000
     41 ELF-X86-64-NEXT:     FileSize: 312
     42 ELF-X86-64-NEXT:     MemSize: 312
     43 ELF-X86-64-NEXT:     Flags [ (0x5)
     44 ELF-X86-64-NEXT:       PF_R (0x4)
     45 ELF-X86-64-NEXT:       PF_X (0x1)
     46 ELF-X86-64-NEXT:     ]
     47 ELF-X86-64-NEXT:     Alignment: 2097152
     48 ELF-X86-64-NEXT:   }
     49 ELF-X86-64-NEXT:   ProgramHeader {
     50 ELF-X86-64-NEXT:     Type: PT_GNU_EH_FRAME (0x6474E550)
     51 ELF-X86-64-NEXT:     Offset: 0xF4
     52 ELF-X86-64-NEXT:     VirtualAddress: 0x4000F4
     53 ELF-X86-64-NEXT:     PhysicalAddress: 0x4000F4
     54 ELF-X86-64-NEXT:     FileSize: 20
     55 ELF-X86-64-NEXT:     MemSize: 20
     56 ELF-X86-64-NEXT:     Flags [ (0x4)
     57 ELF-X86-64-NEXT:       PF_R (0x4)
     58 ELF-X86-64-NEXT:     ]
     59 ELF-X86-64-NEXT:     Alignment: 4
     60 ELF-X86-64-NEXT:   }
     61 ELF-X86-64-NEXT:   ProgramHeader {
     62 ELF-X86-64-NEXT:     Type: PT_GNU_STACK (0x6474E551)
     63 ELF-X86-64-NEXT:     Offset: 0x0
     64 ELF-X86-64-NEXT:     VirtualAddress: 0x0
     65 ELF-X86-64-NEXT:     PhysicalAddress: 0x0
     66 ELF-X86-64-NEXT:     FileSize: 0
     67 ELF-X86-64-NEXT:     MemSize: 0
     68 ELF-X86-64-NEXT:     Flags [ (0x6)
     69 ELF-X86-64-NEXT:       PF_R (0x4)
     70 ELF-X86-64-NEXT:       PF_W (0x2)
     71 ELF-X86-64-NEXT:     ]
     72 ELF-X86-64-NEXT:     Alignment: 8
     73 ELF-X86-64-NEXT:   }
     74 ELF-X86-64-NEXT: ]
     75