When --section-headers is used, GNU objdump prints both LMA and VMA for sections. llvm-objdump does not do that what makes it's output be slightly inconsistent. Patch teaches llvm-objdump to print LMA/VMA for ELF file formats. The behavior for other formats remains unchanged. Differential revision: https://reviews.llvm.org/D57146 llvm-svn: 352366
9 lines
381 B
Plaintext
9 lines
381 B
Plaintext
RUN: llvm-objdump -macho -h %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
|
|
|
CHECK: Sections:
|
|
CHECK: Idx Name Size VMA Type
|
|
CHECK: 0 __text 0000003b 0000000000000000 TEXT
|
|
CHECK: 1 __cstring 0000000d 000000000000003b DATA
|
|
CHECK: 2 __compact_unwind 00000020 0000000000000048 DATA
|
|
CHECK: 3 __eh_frame 00000040 0000000000000068 DATA
|