1 # RUN: yaml2obj %s -o %t
3 ## If there are no sections with different LMA to VMA,
4 ## we do not display LMA column.
5 # RUN: llvm-objdump --section-headers %t | FileCheck %s
8 # CHECK-NEXT: Idx Name Size VMA Type
9 # CHECK-NEXT: 0 00000000 0000000000000000
10 # CHECK-NEXT: 1 .text 00000004 0000000000001000 TEXT
11 # CHECK-NEXT: 2 .init 00000004 0000000000001010 TEXT
12 # CHECK-NEXT: 3 .data 00000004 0000000000002000 DATA
14 ## Check we can trigger displaying the LMA column with --show-lma.
15 # RUN: llvm-objdump --section-headers --show-lma %t |\
16 # RUN: FileCheck %s --check-prefix=LMA
19 # LMA-NEXT: Idx Name Size VMA LMA Type
20 # LMA-NEXT: 0 00000000 0000000000000000 0000000000000000
21 # LMA-NEXT: 1 .text 00000004 0000000000001000 0000000000001000 TEXT
22 # LMA-NEXT: 2 .init 00000004 0000000000001010 0000000000001010 TEXT
23 # LMA-NEXT: 3 .data 00000004 0000000000002000 0000000000002000 DATA
34 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
39 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]