forked from OSchip/llvm-project
[llvm-objdump][test] Change llvm-objdump tests to use double dash options
This commit is contained in:
parent
9c5771710e
commit
6ed18eaa77
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %p/Inputs/eh_frame-coff.yaml | llvm-objdump -dwarf=frames - 2>/dev/null | FileCheck %s
|
||||
# RUN: yaml2obj %p/Inputs/eh_frame-coff.yaml | llvm-objdump --dwarf=frames - 2>/dev/null | FileCheck %s
|
||||
|
||||
# CHECK: .eh_frame contents:
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# RUN: yaml2obj %s -o %t
|
||||
# RUN: llvm-objdump -f %t | FileCheck %s -DFILE=%t
|
||||
# RUN: llvm-objdump -file-headers %t | FileCheck %s -DFILE=%t
|
||||
# RUN: llvm-objdump --file-headers %t | FileCheck %s -DFILE=%t
|
||||
|
||||
!COFF
|
||||
header: !Header
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# CHECK: bl {{.*}} <__cfi_slowpath@plt>
|
||||
|
||||
# RUN: yaml2obj %s -o %t.aarch64
|
||||
# RUN: llvm-objdump -d -mattr=+bti %t.aarch64 | \
|
||||
# RUN: llvm-objdump -d --mattr=+bti %t.aarch64 | \
|
||||
# RUN: FileCheck --check-prefix=CHECK-BTI %s
|
||||
# CHECK-BTI: bl {{.*}} <f1@plt>
|
||||
# CHECK-BTI: bl {{.*}} <f2@plt>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %s > %t.ll
|
||||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -O0 -o %t.o %t.ll
|
||||
; RUN: llvm-objdump -triple=amdgcn-amd-amdhsa -mcpu=gfx802 -disassemble -line-numbers %t.o | FileCheck --check-prefix=LINE %t.ll
|
||||
; RUN: llvm-objdump -triple=amdgcn-amd-amdhsa -mcpu=gfx802 -disassemble -source %t.o | FileCheck --check-prefix=SOURCE %t.ll
|
||||
; RUN: llvm-objdump --triple=amdgcn-amd-amdhsa --mcpu=gfx802 -d -l %t.o | FileCheck --check-prefix=LINE %t.ll
|
||||
; RUN: llvm-objdump --triple=amdgcn-amd-amdhsa --mcpu=gfx802 -d -S %t.o | FileCheck --check-prefix=SOURCE %t.ll
|
||||
|
||||
; Prologue.
|
||||
; LINE: source_lines_test{{>?}}:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@ RUN: llvm-mc %s -triple armv5-unknown-linux -filetype=obj -o %t
|
||||
@ RUN: llvm-objdump -d %t | FileCheck -check-prefix=STD %s
|
||||
@ RUN: llvm-objdump -d %t | FileCheck --check-prefix=STD %s
|
||||
@ RUN: llvm-objdump -d -Mreg-names-std %t \
|
||||
@ RUN: | FileCheck -check-prefix=STD %s
|
||||
@ RUN: llvm-objdump -d --disassembler-options=reg-names-raw %t \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj %s -o %t
|
||||
# RUN: llvm-objdump -D -triple=thumbv8.1m.main-none-eabi %t | FileCheck %s
|
||||
# RUN: llvm-objdump -D --triple=thumbv8.1m.main-none-eabi %t | FileCheck %s
|
||||
|
||||
## This is a test case with "random" data/instructions, checking that
|
||||
## llvm-objdump handles such instructions cleanly. Disassembly of instructions
|
||||
|
@ -10,7 +10,7 @@
|
|||
##
|
||||
## and disassembly is attempted with:
|
||||
##
|
||||
## llvm-objdump -mattr=+ext1
|
||||
## llvm-objdump --mattr=+ext1
|
||||
|
||||
# CHECK: 00000000 <.text>:
|
||||
# CHECK-NEXT: 0: cb <unknown>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv5t-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv5t-elf -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.arch armv5t
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv5te-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv5te-elf -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.arch armv5te
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv5tej-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv5tej-elf -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
bxj:
|
||||
bxj r0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv6 -mattr=+vfp2 -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv6 -mattr=+vfp2 -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.eabi_attribute Tag_FP_arch, 1 // VFP2
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv6-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv6-elf -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.arch armv6
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv6 -mattr=+vfp2 -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv6 -mattr=+vfp2 -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.eabi_attribute Tag_FP_arch, 2 // VFP2
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv6k-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv6k-elf -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.arch armv6k
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv6m-elf -filetype=obj | llvm-objdump -triple=thumb -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv6m-elf -filetype=obj | llvm-objdump --triple=thumb -d - | FileCheck %s
|
||||
|
||||
.arch armv6m
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv6t2-elf -filetype=obj | llvm-objdump -triple=thumb -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv6t2-elf -filetype=obj | llvm-objdump --triple=thumb -d - | FileCheck %s
|
||||
|
||||
.arch armv6t2
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@ RUN: llvm-mc < %s -triple armv7a -mattr=+vfp3,+neon,+fp16,+hwdiv-arm,+hwdiv -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7a -mattr=+vfp3,+neon,+fp16,+hwdiv-arm,+hwdiv -filetype=obj | llvm-objdump -triple=thumb -d - | FileCheck %s --check-prefix=CHECK-THUMB
|
||||
@ RUN: llvm-mc < %s -triple armv7a -mattr=+vfp3,+neon,+fp16,+hwdiv-arm,+hwdiv -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7a -mattr=+vfp3,+neon,+fp16,+hwdiv-arm,+hwdiv -filetype=obj | llvm-objdump --triple=thumb -d - | FileCheck %s --check-prefix=CHECK-THUMB
|
||||
|
||||
.eabi_attribute Tag_FP_arch, 0 // disallow vfp
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv7a -mattr=+vfp3,+neon,+fp16,+hwdiv-arm -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7a -mattr=+vfp3,+neon,+fp16,+hwdiv-arm -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.eabi_attribute Tag_FP_arch, 3 // VFP3
|
||||
.eabi_attribute Tag_Advanced_SIMD_arch, 2 // SIMDv1 with fp16
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv7m -mattr=+vfp4 -filetype=obj | llvm-objdump -triple=thumb -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7m -mattr=+vfp4 -filetype=obj | llvm-objdump --triple=thumb -d - | FileCheck %s
|
||||
|
||||
.eabi_attribute Tag_CPU_arch, 10 // v7
|
||||
.eabi_attribute Tag_FP_arch, 0 // VFP4
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv7m-elf -filetype=obj | llvm-objdump -triple=thumb -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7m-elf -filetype=obj | llvm-objdump --triple=thumb -d - | FileCheck %s
|
||||
|
||||
.arch armv7m
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv7m -mattr=+vfp4 -filetype=obj | llvm-objdump -triple=thumb -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7m -mattr=+vfp4 -filetype=obj | llvm-objdump --triple=thumb -d - | FileCheck %s
|
||||
|
||||
.eabi_attribute Tag_CPU_arch, 10 // v7
|
||||
.eabi_attribute Tag_CPU_arch_profile, 0x4D // 'M' profile
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv8a-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv8a-elf -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.arch armv8a
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv8r-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv8r-elf -filetype=obj | llvm-objdump --triple=arm -d - | FileCheck %s
|
||||
|
||||
.eabi_attribute Tag_CPU_arch, 15 // v8_R
|
||||
.eabi_attribute Tag_CPU_arch_profile, 0x52 // 'R' profile
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# RUN: yaml2obj --docnum=1 %s -o %t
|
||||
# RUN: llvm-objdump -f %t | FileCheck %s -DFILE=%t -check-prefix ELF64
|
||||
# RUN: llvm-objdump -file-headers %t | FileCheck %s -DFILE=%t -check-prefix ELF64
|
||||
# RUN: llvm-objdump -f %t | FileCheck %s -DFILE=%t --check-prefix ELF64
|
||||
# RUN: llvm-objdump --file-headers %t | FileCheck %s -DFILE=%t --check-prefix ELF64
|
||||
|
||||
!ELF
|
||||
FileHeader:
|
||||
|
@ -15,8 +15,8 @@ FileHeader:
|
|||
# ELF64: start address: 0x00123456789abcde
|
||||
|
||||
# RUN: yaml2obj --docnum=2 %s -o %t-i386
|
||||
# RUN: llvm-objdump -f %t-i386 | FileCheck -DFILE=%t-i386 %s -check-prefix ELF32
|
||||
# RUN: llvm-objdump -file-headers %t-i386 | FileCheck %s -DFILE=%t-i386 -check-prefix ELF32
|
||||
# RUN: llvm-objdump -f %t-i386 | FileCheck -DFILE=%t-i386 %s --check-prefix ELF32
|
||||
# RUN: llvm-objdump --file-headers %t-i386 | FileCheck %s -DFILE=%t-i386 --check-prefix ELF32
|
||||
|
||||
# ELF32: [[FILE]]: file format elf32-i386
|
||||
# ELF32: architecture: i386
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -universal-headers %p/Inputs/arm64_32-fat.o | FileCheck %s
|
||||
RUN: llvm-objdump --macho --universal-headers %p/Inputs/arm64_32-fat.o | FileCheck %s
|
||||
|
||||
CHECK: cputype CPU_TYPE_ARM64_32
|
||||
CHECK-NEXT: cpusubtype CPU_SUBTYPE_ARM64_32_V8
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: llvm-mc -triple arm64_32-apple-watchos %s -filetype=obj -o %t
|
||||
// RUN: llvm-objdump -macho -d %t | FileCheck %s
|
||||
// RUN: llvm-objdump -macho -private-headers %t | FileCheck %s --check-prefix=CHECK-HEADERS
|
||||
// RUN: llvm-objdump --macho -d %t | FileCheck %s
|
||||
// RUN: llvm-objdump --macho --private-headers %t | FileCheck %s --check-prefix=CHECK-HEADERS
|
||||
|
||||
// CHECK: ldr x0, [x2]
|
||||
ldr x0, [x2]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
RUN: llvm-objdump -d -m -no-show-raw-insn %p/Inputs/print-armv8crypto.obj.macho-aarch64 | FileCheck %s
|
||||
RUN: llvm-objdump -d -m --no-show-raw-insn %p/Inputs/print-armv8crypto.obj.macho-aarch64 | FileCheck %s
|
||||
|
||||
CHECK: 0: sha1su0.4s v0, v1, v2
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: yaml2obj %p/Inputs/arm64e.macho.yaml -o %tarm64e.o
|
||||
// RUN: llvm-objdump -p %tarm64e.o | FileCheck -strict-whitespace %s
|
||||
// RUN: llvm-objdump -p %tarm64e.o | FileCheck --strict-whitespace %s
|
||||
|
||||
CHECK: Mach header
|
||||
CHECK-NEXT: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: llvm-objdump -d -m -no-show-raw-insn -arch all %p/Inputs/fat.macho-armv7s-arm64 >%t0
|
||||
RUN: llvm-objdump -dm -no-show-raw-insn -arch all %p/Inputs/fat.macho-armv7s-arm64 >%t1
|
||||
RUN: llvm-objdump -d -m --no-show-raw-insn --arch all %p/Inputs/fat.macho-armv7s-arm64 >%t0
|
||||
RUN: llvm-objdump --dm --no-show-raw-insn --arch all %p/Inputs/fat.macho-armv7s-arm64 >%t1
|
||||
RUN: cmp %t0 %t1
|
||||
RUN: FileCheck --input-file %t0 %s
|
||||
REQUIRES: arm-registered-target
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -d -m -no-show-raw-insn %p/Inputs/kextbundle.macho-aarch64 | FileCheck %s
|
||||
RUN: llvm-objdump -d -m --no-show-raw-insn %p/Inputs/kextbundle.macho-aarch64 | FileCheck %s
|
||||
|
||||
CHECK: (__TEXT_EXEC,__text) section
|
||||
CHECK: _foo:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -m -link-opt-hints %p/Inputs/link-opt-hints.macho-aarch64 | FileCheck %s
|
||||
RUN: llvm-objdump -m --link-opt-hints %p/Inputs/link-opt-hints.macho-aarch64 | FileCheck %s
|
||||
|
||||
CHECK: Linker optimiztion hints (8 total bytes)
|
||||
CHECK: identifier 8 AdrpLdrGot
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
RUN: llvm-objdump -d -m -no-show-raw-insn %p/Inputs/print-mrs.obj.macho-aarch64 | FileCheck %s
|
||||
RUN: llvm-objdump -d -m --no-show-raw-insn %p/Inputs/print-mrs.obj.macho-aarch64 | FileCheck %s
|
||||
|
||||
CHECK: 0: mrs x0, CPM_IOACC_CTL_EL3
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -private-headers %p/Inputs/thread.macho-arm64_32 | FileCheck %s
|
||||
RUN: llvm-objdump --macho --private-headers %p/Inputs/thread.macho-arm64_32 | FileCheck %s
|
||||
|
||||
CHECK: Load command 0
|
||||
CHECK: cmd LC_UNIXTHREAD
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -private-headers %p/Inputs/thread.macho-aarch64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho --private-headers %p/Inputs/thread.macho-aarch64 | FileCheck %s
|
||||
|
||||
CHECK: Load command 0
|
||||
CHECK: cmd LC_THREAD
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-aarch64 | FileCheck %s -check-prefix=OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-aarch64 | FileCheck %s -check-prefix=EXE
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.obj.macho-aarch64 | FileCheck %s -check-prefix=ObjC-OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.exe.macho-aarch64 | FileCheck %s -check-prefix=ObjC-EXE
|
||||
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.obj.macho-aarch64 | FileCheck %s --check-prefix=OBJ
|
||||
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.exe.macho-aarch64 | FileCheck %s --check-prefix=EXE
|
||||
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/ObjC.obj.macho-aarch64 | FileCheck %s --check-prefix=ObjC-OBJ
|
||||
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/ObjC.exe.macho-aarch64 | FileCheck %s --check-prefix=ObjC-EXE
|
||||
|
||||
OBJ: 000000000000001c adrp x0, L_.str@PAGE
|
||||
OBJ: 0000000000000020 add x0, x0, L_.str@PAGEOFF
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: llvm-mc < %s -triple aarch64-macho -filetype=obj | llvm-objdump -triple=aarch64-- -D - | FileCheck %s
|
||||
// RUN: llvm-mc < %s -triple aarch64-macho -filetype=obj | llvm-objdump --triple=aarch64-- -D - | FileCheck %s
|
||||
|
||||
|
||||
// Check that we don't print garbage when we dump zerofill sections.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-objdump -macho -d -arch armv7m %p/Inputs/fat-armv7m.o | FileCheck %s
|
||||
@ RUN: llvm-objdump --macho -d --arch armv7m %p/Inputs/fat-armv7m.o | FileCheck %s
|
||||
@ CHECK: fat-armv7m.o:
|
||||
@ CHECK: (__TEXT,__text) section
|
||||
@ CHECK: foo:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@ RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump -arch armv7 -m -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump --arch armv7 -m -d - | FileCheck %s
|
||||
|
||||
.thumb
|
||||
.thumb_func _t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: llvm-objdump -m -data-in-code %p/Inputs/data-in-code.macho-arm | FileCheck %s
|
||||
RUN: llvm-objdump -m -data-in-code -non-verbose %p/Inputs/data-in-code.macho-arm | FileCheck %s -check-prefix=NON_VERBOSE
|
||||
RUN: llvm-objdump -m --data-in-code %p/Inputs/data-in-code.macho-arm | FileCheck %s
|
||||
RUN: llvm-objdump -m --data-in-code --non-verbose %p/Inputs/data-in-code.macho-arm | FileCheck %s --check-prefix=NON_VERBOSE
|
||||
|
||||
CHECK: Data in code table (4 entries)
|
||||
CHECK: offset length kind
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -macho -d %p/Inputs/it-nv.o | FileCheck %s
|
||||
# RUN: llvm-objdump --macho -d %p/Inputs/it-nv.o | FileCheck %s
|
||||
|
||||
# CHECK: ite al @ unpredictable IT predicate sequence
|
||||
# CHECK: itet al @ unpredictable IT predicate sequence
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple armv8-apple-darwin10 -mattr=+fp-armv8 -filetype=obj -o - | llvm-objdump -d -m -mattr=+fp-armv8 - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv8-apple-darwin10 -mattr=+fp-armv8 -filetype=obj -o - | llvm-objdump -d -m --mattr=+fp-armv8 - | FileCheck %s
|
||||
|
||||
vcvtt.f64.f16 d3, s1
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@ RUN: llvm-mc < %s -triple thumbv7-apple-darwin -mcpu=cortex-a7 -filetype=obj | llvm-objdump -triple thumbv7-apple-darwin10 -m -d -mcpu=cortex-a7 - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple thumbv7-apple-darwin -mcpu=cortex-a7 -filetype=obj | llvm-objdump --triple thumbv7-apple-darwin10 -m -d --mcpu=cortex-a7 - | FileCheck %s
|
||||
|
||||
.thumb
|
||||
.thumb_func _t
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -d -macho %p/Inputs/mh_dylib_header.macho-arm
|
||||
RUN: llvm-objdump -d --macho %p/Inputs/mh_dylib_header.macho-arm
|
||||
|
||||
CHECK: _t1:
|
||||
CHECK: movw r0, #4133
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: llvm-objdump -p %p/Inputs/hello.obj.macho-arm | FileCheck %s
|
||||
// RUN: llvm-objdump -p %p/Inputs/hello.exe.macho-arm \
|
||||
// RUN: | FileCheck %s -check-prefix=EXE
|
||||
// RUN: llvm-objdump -macho -private-headers %p/Inputs/thumb.armv7m \
|
||||
// RUN: llvm-objdump --macho --private-headers %p/Inputs/thumb.armv7m \
|
||||
// RUN: | FileCheck %s -check-prefix=THREAD
|
||||
|
||||
CHECK: Mach header
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-arm | FileCheck %s -check-prefix=OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-arm | FileCheck %s -check-prefix=EXE
|
||||
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.obj.macho-arm | FileCheck %s --check-prefix=OBJ
|
||||
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.exe.macho-arm | FileCheck %s --check-prefix=EXE
|
||||
|
||||
OBJ: 00000006 40 f2 24 03 movw r3, :lower16:((54-14)-4)
|
||||
OBJ: 0000000a c0 f2 00 03 movt r3, :upper16:((54-14)-4)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@ RUN: llvm-mc < %s -triple thumbv7m-apple-macho -filetype=obj | llvm-objdump -macho -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple thumbv7em-apple-macho -filetype=obj | llvm-objdump -macho -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple thumbv7m-apple-macho -filetype=obj | llvm-objdump --macho -d - | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple thumbv7em-apple-macho -filetype=obj | llvm-objdump --macho -d - | FileCheck %s
|
||||
|
||||
.thumb
|
||||
.thumb_func _t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: xar
|
||||
# RUN: env ASAN_OPTIONS=detect_leaks=0 llvm-objdump -macho -archive-headers -section __LLVM,__bundle %p/Inputs/LLVM-bundle.macho-x86_64 | FileCheck %s
|
||||
# RUN: env ASAN_OPTIONS=detect_leaks=0 llvm-objdump --macho --archive-headers --section __LLVM,__bundle %p/Inputs/LLVM-bundle.macho-x86_64 | FileCheck %s
|
||||
|
||||
# CHECK: For (__LLVM,__bundle) section: xar header
|
||||
# CHECK: magic XAR_HEADER_MAGIC
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -macho -archive-headers -arch all \
|
||||
RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch all \
|
||||
RUN: | FileCheck %s
|
||||
RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -macho -archive-headers -arch all -archive-member-offsets \
|
||||
RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch all --archive-member-offsets \
|
||||
RUN: | FileCheck %s -check-prefix=OFFSETS
|
||||
RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -macho -archive-headers -arch all -non-verbose \
|
||||
RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch all --non-verbose \
|
||||
RUN: | FileCheck %s -check-prefix=NON-VERBOSE
|
||||
|
||||
# Note the date as printed by ctime(3) is time zone dependent and not checked.
|
||||
|
|
|
@ -1,101 +1,101 @@
|
|||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-dylib-ordinal-uleb 2>&1 | FileCheck -check-prefix DYLIB-ORDINAL-ULEB %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-dylib-ordinal-uleb 2>&1 | FileCheck --check-prefix DYLIB-ORDINAL-ULEB %s
|
||||
DYLIB-ORDINAL-ULEB: macho-bind-dylib-ordinal-uleb': truncated or malformed object (for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB bad library ordinal: 355 (max 1) for opcode at: 0x0)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-dylib-ordinal-uleb-malformed-uleb128 2>&1 | FileCheck -check-prefix DYLIB-ORDINAL-ULEB-MALFORMED-ULEB128 %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-dylib-ordinal-uleb-malformed-uleb128 2>&1 | FileCheck --check-prefix DYLIB-ORDINAL-ULEB-MALFORMED-ULEB128 %s
|
||||
DYLIB-ORDINAL-ULEB-MALFORMED-ULEB128: macho-bind-dylib-ordinal-uleb-malformed-uleb128': truncated or malformed object (for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB malformed uleb128, extends past end for opcode at: 0x0)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-dylib-ordinal-uleb-too-big 2>&1 | FileCheck -check-prefix DYLIB-ORDINAL-ULEB-TOO-BIG %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-dylib-ordinal-uleb-too-big 2>&1 | FileCheck --check-prefix DYLIB-ORDINAL-ULEB-TOO-BIG %s
|
||||
DYLIB-ORDINAL-ULEB-TOO-BIG: macho-bind-dylib-ordinal-uleb-too-big': truncated or malformed object (for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB uleb128 too big for uint64 for opcode at: 0x0)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-dylib-special-imm 2>&1 | FileCheck -check-prefix DYLIB-SPECIAL-IMM %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-dylib-special-imm 2>&1 | FileCheck --check-prefix DYLIB-SPECIAL-IMM %s
|
||||
DYLIB-SPECIAL-IMM: macho-bind-dylib-special-imm': truncated or malformed object (for BIND_OPCODE_SET_DYLIB_SPECIAL_IMM unknown special ordinal: -5 for opcode at: 0x0)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-set-symbol 2>&1 | FileCheck -check-prefix BIND-SET-SYMBOL %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-set-symbol 2>&1 | FileCheck --check-prefix BIND-SET-SYMBOL %s
|
||||
BIND-SET-SYMBOL: macho-bind-set-symbol': truncated or malformed object (for BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM symbol name extends past opcodes for opcode at: 0x2)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-set-type-imm 2>&1 | FileCheck -check-prefix SET-TYPE-IMM %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-set-type-imm 2>&1 | FileCheck --check-prefix SET-TYPE-IMM %s
|
||||
SET-TYPE-IMM: macho-bind-set-type-imm': truncated or malformed object (for BIND_OPCODE_SET_TYPE_IMM bad bind type: 5 for opcode at: 0x14)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-set-addend-sleb 2>&1 | FileCheck -check-prefix SET-ADDEND-SLEB %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-set-addend-sleb 2>&1 | FileCheck --check-prefix SET-ADDEND-SLEB %s
|
||||
SET-ADDEND-SLEB: macho-bind-set-addend-sleb': truncated or malformed object (for BIND_OPCODE_SET_ADDEND_SLEB malformed sleb128, extends past end for opcode at: 0x14)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-seg-too-big 2>&1 | FileCheck -check-prefix SEG-TOO-BIG %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-seg-too-big 2>&1 | FileCheck --check-prefix SEG-TOO-BIG %s
|
||||
SEG-TOO-BIG: macho-bind-seg-too-big': truncated or malformed object (for BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB bad segIndex (too large) for opcode at: 0x15)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-segoff-too-big 2>&1 | FileCheck -check-prefix SEGOFF-TOO-BIG %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-segoff-too-big 2>&1 | FileCheck --check-prefix SEGOFF-TOO-BIG %s
|
||||
SEGOFF-TOO-BIG: macho-bind-segoff-too-big': truncated or malformed object (for BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB bad offset, not in section for opcode at: 0x15)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-add_addr_uleb 2>&1 | FileCheck -check-prefix ADD_ADDR_ULEB %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-add_addr_uleb 2>&1 | FileCheck --check-prefix ADD_ADDR_ULEB %s
|
||||
ADD_ADDR_ULEB: macho-bind-add_addr_uleb': truncated or malformed object (for BIND_OPCODE_ADD_ADDR_ULEB bad offset, not in section for opcode at: 0x17)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-do-bind-no-segIndex 2>&1 | FileCheck -check-prefix BIND-NO-SEGINDEX %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-do-bind-no-segIndex 2>&1 | FileCheck --check-prefix BIND-NO-SEGINDEX %s
|
||||
BIND-NO-SEGINDEX: macho-bind-do-bind-no-segIndex': truncated or malformed object (for BIND_OPCODE_DO_BIND missing preceding *_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB for opcode at: 0x15)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-bind-add-addr-uleb 2>&1 | FileCheck -check-prefix ADD-ADDR-ULEB %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-bind-add-addr-uleb 2>&1 | FileCheck --check-prefix ADD-ADDR-ULEB %s
|
||||
ADD-ADDR-ULEB: macho-bind-bind-add-addr-uleb': truncated or malformed object (for BIND_OPCODE_ADD_ADDR_ULEB (after adding ULEB) bad offset, not in section for opcode at: 0x18)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-add-addr-imm-scaled 2>&1 | FileCheck -check-prefix ADD-ADDR-IMM-SCALED %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-add-addr-imm-scaled 2>&1 | FileCheck --check-prefix ADD-ADDR-IMM-SCALED %s
|
||||
ADD-ADDR-IMM-SCALED: macho-bind-add-addr-imm-scaled': truncated or malformed object (for BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED bad offset, not in section for opcode at: 0x17)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-uleb-times-skipping-uleb 2>&1 | FileCheck -check-prefix ULEB-TIMES-SKIPPING-ULEB %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-uleb-times-skipping-uleb 2>&1 | FileCheck --check-prefix ULEB-TIMES-SKIPPING-ULEB %s
|
||||
ULEB-TIMES-SKIPPING-ULEB: macho-bind-uleb-times-skipping-uleb': truncated or malformed object (for BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB bad offset, not in section for opcode at: 0x17)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-do-bind-no-symbol 2>&1 | FileCheck -check-prefix DO-BIND-NO-SYMBOL %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-do-bind-no-symbol 2>&1 | FileCheck --check-prefix DO-BIND-NO-SYMBOL %s
|
||||
DO-BIND-NO-SYMBOL: macho-do-bind-no-symbol': truncated or malformed object (for BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB missing preceding BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM for opcode at: 0x5)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-do-bind-no-dylib-ordinal 2>&1 | FileCheck -check-prefix DO-BIND-NO-DYLIB-ORDINAL %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-do-bind-no-dylib-ordinal 2>&1 | FileCheck --check-prefix DO-BIND-NO-DYLIB-ORDINAL %s
|
||||
DO-BIND-NO-DYLIB-ORDINAL: macho-do-bind-no-dylib-ordinal': truncated or malformed object (for BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB missing preceding BIND_OPCODE_SET_DYLIB_ORDINAL_* for opcode at: 0x15)
|
||||
|
||||
RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-bad-opcode-value 2>&1 | FileCheck -check-prefix BAD-OPCODE-VALUE %s
|
||||
RUN: not llvm-objdump --macho --bind %p/Inputs/macho-bind-bad-opcode-value 2>&1 | FileCheck --check-prefix BAD-OPCODE-VALUE %s
|
||||
BAD-OPCODE-VALUE: macho-bind-bad-opcode-value': truncated or malformed object (bad bind info (bad opcode value 0xd0 for opcode at: 0x18)
|
||||
|
||||
RUN: not llvm-objdump -macho -lazy-bind %p/Inputs/macho-lazy-do_bind_add_addr_uleb 2>&1 | FileCheck -check-prefix LAZY_DO_BIND_ADD_ADDR_ULEB %s
|
||||
RUN: not llvm-objdump --macho --lazy-bind %p/Inputs/macho-lazy-do_bind_add_addr_uleb 2>&1 | FileCheck --check-prefix LAZY_DO_BIND_ADD_ADDR_ULEB %s
|
||||
LAZY_DO_BIND_ADD_ADDR_ULEB: macho-lazy-do_bind_add_addr_uleb': truncated or malformed object (BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB not allowed in lazy bind table for opcode at: 0xc)
|
||||
|
||||
RUN: not llvm-objdump -macho -lazy-bind %p/Inputs/macho-lazy-do-bind-add-addr-imm-scaled 2>&1 | FileCheck -check-prefix LAZY-DO-BIND-ADD-ADDR-IMM-SCALED %s
|
||||
RUN: not llvm-objdump --macho --lazy-bind %p/Inputs/macho-lazy-do-bind-add-addr-imm-scaled 2>&1 | FileCheck --check-prefix LAZY-DO-BIND-ADD-ADDR-IMM-SCALED %s
|
||||
LAZY-DO-BIND-ADD-ADDR-IMM-SCALED: macho-lazy-do-bind-add-addr-imm-scaled': truncated or malformed object (BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED not allowed in lazy bind table for opcode at: 0xc)
|
||||
|
||||
RUN: not llvm-objdump -macho -lazy-bind %p/Inputs/macho-lazy-do-bind-uleb-times-skipping-uleb 2>&1 | FileCheck -check-prefix LAZY-DO-BIND-ULEB-TIMES-SKIPPING-ULEB %s
|
||||
RUN: not llvm-objdump --macho --lazy-bind %p/Inputs/macho-lazy-do-bind-uleb-times-skipping-uleb 2>&1 | FileCheck --check-prefix LAZY-DO-BIND-ULEB-TIMES-SKIPPING-ULEB %s
|
||||
LAZY-DO-BIND-ULEB-TIMES-SKIPPING-ULEB: macho-lazy-do-bind-uleb-times-skipping-uleb': truncated or malformed object (BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB not allowed in lazy bind table for opcode at: 0xc)
|
||||
|
||||
RUN: not llvm-objdump -macho -weak-bind %p/Inputs/macho-weak-bind-set-dylib-ordinal-imm 2>&1 | FileCheck -check-prefix WEAK-BIND-SET-DYLIB-ORDINAL-IMM %s
|
||||
RUN: not llvm-objdump --macho --weak-bind %p/Inputs/macho-weak-bind-set-dylib-ordinal-imm 2>&1 | FileCheck --check-prefix WEAK-BIND-SET-DYLIB-ORDINAL-IMM %s
|
||||
WEAK-BIND-SET-DYLIB-ORDINAL-IMM: macho-weak-bind-set-dylib-ordinal-imm': truncated or malformed object (BIND_OPCODE_SET_DYLIB_ORDINAL_IMM not allowed in weak bind table for opcode at: 0x2)
|
||||
|
||||
RUN: not llvm-objdump -macho -weak-bind %p/Inputs/macho-weak-bind-set-dylib-ordinal-uleb 2>&1 | FileCheck -check-prefix WEAK-BIND-SET-DYLIB-ORDINAL-ULEB %s
|
||||
RUN: not llvm-objdump --macho --weak-bind %p/Inputs/macho-weak-bind-set-dylib-ordinal-uleb 2>&1 | FileCheck --check-prefix WEAK-BIND-SET-DYLIB-ORDINAL-ULEB %s
|
||||
WEAK-BIND-SET-DYLIB-ORDINAL-ULEB: macho-weak-bind-set-dylib-ordinal-uleb': truncated or malformed object (BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB not allowed in weak bind table for opcode at: 0x2)
|
||||
|
||||
RUN: not llvm-objdump -macho -weak-bind %p/Inputs/macho-weak-bind-set-dylib-special-imm 2>&1 | FileCheck -check-prefix WEAK-BIND-SET-DYLIB-SPECIAL-IMM %s
|
||||
RUN: not llvm-objdump --macho --weak-bind %p/Inputs/macho-weak-bind-set-dylib-special-imm 2>&1 | FileCheck --check-prefix WEAK-BIND-SET-DYLIB-SPECIAL-IMM %s
|
||||
WEAK-BIND-SET-DYLIB-SPECIAL-IMM: macho-weak-bind-set-dylib-special-imm': truncated or malformed object (BIND_OPCODE_SET_DYLIB_SPECIAL_IMM not allowed in weak bind table for opcode at: 0x2)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-set-type-imm 2>&1 | FileCheck -check-prefix REBASE-SET-TYPE-IMM %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-set-type-imm 2>&1 | FileCheck --check-prefix REBASE-SET-TYPE-IMM %s
|
||||
REBASE-SET-TYPE-IMM: macho-rebase-set-type-imm': truncated or malformed object (for REBASE_OPCODE_SET_TYPE_IMM bad bind type: 5 for opcode at: 0x0)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-uleb-malformed-uleb128 2>&1 | FileCheck -check-prefix REBASE-ULEB-MALFORMED-ULEB128 %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-uleb-malformed-uleb128 2>&1 | FileCheck --check-prefix REBASE-ULEB-MALFORMED-ULEB128 %s
|
||||
REBASE-ULEB-MALFORMED-ULEB128: macho-rebase-uleb-malformed-uleb128': truncated or malformed object (for REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB malformed uleb128, extends past end for opcode at: 0x1)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-seg-too-big 2>&1 | FileCheck -check-prefix REBASE-SEG-TOO-BIG %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-seg-too-big 2>&1 | FileCheck --check-prefix REBASE-SEG-TOO-BIG %s
|
||||
REBASE-SEG-TOO-BIG: macho-rebase-seg-too-big': truncated or malformed object (for REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB bad segIndex (too large) for opcode at: 0x1)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-segoff-too-big 2>&1 | FileCheck -check-prefix REBASE-SEGOFF-TOO-BIG %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-segoff-too-big 2>&1 | FileCheck --check-prefix REBASE-SEGOFF-TOO-BIG %s
|
||||
REBASE-SEGOFF-TOO-BIG: macho-rebase-segoff-too-big': truncated or malformed object (for REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB bad offset, not in section for opcode at: 0x1)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-add-addr-uleb 2>&1 | FileCheck -check-prefix REBASE-ADD-ADDR-ULEB %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-add-addr-uleb 2>&1 | FileCheck --check-prefix REBASE-ADD-ADDR-ULEB %s
|
||||
REBASE-ADD-ADDR-ULEB: macho-rebase-add-addr-uleb': truncated or malformed object (for REBASE_OPCODE_ADD_ADDR_ULEB bad offset, not in section for opcode at: 0x3)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-add-addr-imm-scaled 2>&1 | FileCheck -check-prefix REBASE-ADD-ADDR-IMM-SCALED %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-add-addr-imm-scaled 2>&1 | FileCheck --check-prefix REBASE-ADD-ADDR-IMM-SCALED %s
|
||||
REBASE-ADD-ADDR-IMM-SCALED: macho-rebase-add-addr-imm-scaled': truncated or malformed object (for REBASE_OPCODE_ADD_ADDR_IMM_SCALED bad offset, not in section for opcode at: 0x3)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-imm-times 2>&1 | FileCheck -check-prefix REBASE-IMM-TIMES %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-imm-times 2>&1 | FileCheck --check-prefix REBASE-IMM-TIMES %s
|
||||
REBASE-IMM-TIMES: macho-rebase-imm-times': truncated or malformed object (for REBASE_OPCODE_DO_REBASE_IMM_TIMES bad offset, not in section for opcode at: 0x3)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-uleb-times 2>&1 | FileCheck -check-prefix REBASE-ULEB-TIMES %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-uleb-times 2>&1 | FileCheck --check-prefix REBASE-ULEB-TIMES %s
|
||||
REBASE-ULEB-TIMES: macho-rebase-uleb-times': truncated or malformed object (for REBASE_OPCODE_DO_REBASE_ULEB_TIMES bad offset, not in section for opcode at: 0x3)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-add-addr-uleb-too-big 2>&1 | FileCheck -check-prefix REBASE-ADD-ADDR-ULEB-TOO-BIG %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-add-addr-uleb-too-big 2>&1 | FileCheck --check-prefix REBASE-ADD-ADDR-ULEB-TOO-BIG %s
|
||||
REBASE-ADD-ADDR-ULEB-TOO-BIG: macho-rebase-add-addr-uleb-too-big': truncated or malformed object (for REBASE_OPCODE_DO_REBASE_IMM_TIMES bad offset, not in section for opcode at: 0x6)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-uleb-times-skipping-uleb 2>&1 | FileCheck -check-prefix REBASE-ULEB-TIMES-SKIPPING-ULEB %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-uleb-times-skipping-uleb 2>&1 | FileCheck --check-prefix REBASE-ULEB-TIMES-SKIPPING-ULEB %s
|
||||
REBASE-ULEB-TIMES-SKIPPING-ULEB: macho-rebase-uleb-times-skipping-uleb': truncated or malformed object (for REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB bad offset, not in section for opcode at: 0x3)
|
||||
|
||||
RUN: not llvm-objdump -macho -rebase %p/Inputs/macho-rebase-bad-opcode-value 2>&1 | FileCheck -check-prefix REBASE-BAD-OPCODE-VALUE %s
|
||||
RUN: not llvm-objdump --macho --rebase %p/Inputs/macho-rebase-bad-opcode-value 2>&1 | FileCheck --check-prefix REBASE-BAD-OPCODE-VALUE %s
|
||||
REBASE-BAD-OPCODE-VALUE: macho-rebase-bad-opcode-value': truncated or malformed object (bad rebase info (bad opcode value 0xd0 for opcode at: 0x4)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: not llvm-objdump -macho -lazy-bind %p/Inputs/bad-ordinal.macho-x86_64 \
|
||||
# RUN: not llvm-objdump --macho --lazy-bind %p/Inputs/bad-ordinal.macho-x86_64 \
|
||||
# RUN: 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: bad-ordinal.macho-x86_64': truncated or malformed object (for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB bad library ordinal: 2 (max 1) for opcode at: 0x2)
|
||||
|
|
|
@ -1,35 +1,35 @@
|
|||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-bad-kind 2>&1 | FileCheck -check-prefix BAD_KIND %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-bad-kind 2>&1 | FileCheck --check-prefix BAD_KIND %s
|
||||
BAD_KIND: macho-trie-bad-kind': truncated or malformed object (unsupported exported symbol kind: 3 in flags: 0x13 in export trie data at node: 0x53)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-bad-export-info-malformed-uleb128 2>&1 | FileCheck -check-prefix MALFORMED_ULEB128 %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-bad-export-info-malformed-uleb128 2>&1 | FileCheck --check-prefix MALFORMED_ULEB128 %s
|
||||
MALFORMED_ULEB128: macho-trie-bad-export-info-malformed-uleb128': truncated or malformed object (export info size malformed uleb128, extends past end in export trie data at node: 0x5a)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-bad-export-info-malformed-uleb128_too_big 2>&1 | FileCheck -check-prefix MALFORMED_ULEB128_TOO_BIG %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-bad-export-info-malformed-uleb128_too_big 2>&1 | FileCheck --check-prefix MALFORMED_ULEB128_TOO_BIG %s
|
||||
MALFORMED_ULEB128_TOO_BIG: macho-trie-bad-export-info-malformed-uleb128_too_big': truncated or malformed object (export info size uleb128 too big for uint64 in export trie data at node: 0x5a)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-export-info-size-too-big 2>&1 | FileCheck -check-prefix EXPORT_INFO_SIZE_TOO_BIG %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-export-info-size-too-big 2>&1 | FileCheck --check-prefix EXPORT_INFO_SIZE_TOO_BIG %s
|
||||
EXPORT_INFO_SIZE_TOO_BIG: macho-trie-export-info-size-too-big': truncated or malformed object (export info size: 0x1234 in export trie data at node: 0x33 too big and extends past end of trie data)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-children-count-byte 2>&1 | FileCheck -check-prefix CHILDREN_COUNT_BYTE %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-children-count-byte 2>&1 | FileCheck --check-prefix CHILDREN_COUNT_BYTE %s
|
||||
CHILDREN_COUNT_BYTE: macho-trie-children-count-byte': truncated or malformed object (byte for count of childern in export trie data at node: 0x5 extends past end of trie data)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-import-name-start 2>&1 | FileCheck -check-prefix IMPORT_NAME_START %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-import-name-start 2>&1 | FileCheck --check-prefix IMPORT_NAME_START %s
|
||||
IMPORT_NAME_START: macho-trie-import-name-start': truncated or malformed object (import name of re-export in export trie data at node: 0x33 starts past end of trie data)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-import-name-end 2>&1 | FileCheck -check-prefix IMPORT_NAME_END %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-import-name-end 2>&1 | FileCheck --check-prefix IMPORT_NAME_END %s
|
||||
IMPORT_NAME_END: macho-trie-import-name-end': truncated or malformed object (import name of re-export in export trie data at node: 0x33 extends past end of trie data)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-edge-string-end 2>&1 | FileCheck -check-prefix EDGE_STRING_END %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-edge-string-end 2>&1 | FileCheck --check-prefix EDGE_STRING_END %s
|
||||
EDGE_STRING_END: macho-trie-edge-string-end': truncated or malformed object (edge sub-string in export trie data at node: 0x42 for child #0 extends past end of trie data)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-not-export-node 2>&1 | FileCheck -check-prefix NOT_EXPORT_NODE %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-not-export-node 2>&1 | FileCheck --check-prefix NOT_EXPORT_NODE %s
|
||||
NOT_EXPORT_NODE: macho-trie-not-export-node': truncated or malformed object (node is not an export node in export trie data at node: 0x5a)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-node-loop 2>&1 | FileCheck -check-prefix LOOP_OF_CHILDERN %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-node-loop 2>&1 | FileCheck --check-prefix LOOP_OF_CHILDERN %s
|
||||
LOOP_OF_CHILDERN: macho-trie-node-loop': truncated or malformed object (loop in childern in export trie data at node: 0x42 back to node: 0x5)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-trie-bad-library-ordinal 2>&1 | FileCheck -check-prefix BAD_LIBRARY_ORDINAL %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-bad-library-ordinal 2>&1 | FileCheck --check-prefix BAD_LIBRARY_ORDINAL %s
|
||||
BAD_LIBRARY_ORDINAL: macho-trie-bad-library-ordinal': truncated or malformed object (bad library ordinal: 69 (max 3) in export trie data at node: 0x33)
|
||||
|
||||
RUN: not llvm-objdump -macho -exports-trie %p/Inputs/macho-inconsistant-export 2>&1 | FileCheck -check-prefix INCONSISTANT_EXPORT_SIZE %s
|
||||
RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-inconsistant-export 2>&1 | FileCheck --check-prefix INCONSISTANT_EXPORT_SIZE %s
|
||||
INCONSISTANT_EXPORT_SIZE: macho-inconsistant-export': truncated or malformed object (inconsistant export info size: 0x9 where actual size was: 0x5 in export trie data at node: 0x53)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -macho -bind %p/Inputs/bind.macho-x86_64 \
|
||||
# RUN: llvm-objdump --macho --bind %p/Inputs/bind.macho-x86_64 \
|
||||
# RUN: | FileCheck %s
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -macho -bind %p/Inputs/bind2.macho-x86_64 | FileCheck %s
|
||||
# RUN: llvm-objdump --macho --bind %p/Inputs/bind2.macho-x86_64 | FileCheck %s
|
||||
|
||||
# CHECK: __DATA __data 0x00001008 pointer 0 libSystem _malloc
|
||||
# CHECK: __DATA __data 0x00001050 pointer 0 libSystem _malloc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %s | llvm-objdump -macho -private-headers - | FileCheck %s
|
||||
# RUN: yaml2obj %s | llvm-objdump --macho --private-headers - | FileCheck %s
|
||||
|
||||
--- !mach-o
|
||||
FileHeader:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -unwind-info %p/Inputs/compact-unwind.macho-i386 | FileCheck %s
|
||||
# RUN: llvm-objdump --unwind-info %p/Inputs/compact-unwind.macho-i386 | FileCheck %s
|
||||
|
||||
# CHECK: Contents of __compact_unwind section:
|
||||
# CHECK: Entry at offset 0x0:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -unwind-info %p/Inputs/compact-unwind.macho-x86_64 | FileCheck %s
|
||||
# RUN: llvm-objdump --unwind-info %p/Inputs/compact-unwind.macho-x86_64 | FileCheck %s
|
||||
|
||||
# CHECK: Contents of __compact_unwind section:
|
||||
# CHECK: Entry at offset 0x0:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
RUN: llvm-objdump -m -section __TEXT,__cstring %p/Inputs/hello.obj.macho-x86_64 2>&1 | FileCheck %s --implicit-check-not="warning:"
|
||||
RUN: llvm-objdump -m -section __TEXT,__cstring -no-leading-addr %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO_ADDR --implicit-check-not="warning:"
|
||||
RUN: llvm-objdump -m -section __TEXT,__cstring -no-leading-headers %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO_HEADERS --implicit-check-not="warning:"
|
||||
RUN: llvm-objdump -m -section __TEXT,__cstring -non-verbose %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE --implicit-check-not="warning:"
|
||||
RUN: llvm-objdump --macho --section __TEXT,__cstring %p/Inputs/hello.obj.macho-x86_64 2>&1 | FileCheck %s --implicit-check-not="warning:"
|
||||
RUN: llvm-objdump --macho --section __TEXT,__cstring --no-leading-addr %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s --check-prefix=NO_ADDR --implicit-check-not="warning:"
|
||||
RUN: llvm-objdump --macho --section __TEXT,__cstring --no-leading-headers %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s --check-prefix=NO_HEADERS --implicit-check-not="warning:"
|
||||
RUN: llvm-objdump --macho --section __TEXT,__cstring --non-verbose %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s --check-prefix=NON_VERBOSE --implicit-check-not="warning:"
|
||||
|
||||
CHECK: Contents of (__TEXT,__cstring) section
|
||||
CHECK-NEXT: 000000000000003b Hello world\n
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; RUN: llc -mtriple x86_64-apple-darwin -filetype=obj -O0 %s -o %t.o
|
||||
; RUN: llvm-objdump -macho -disassemble -no-show-raw-insn %t.o | FileCheck %s
|
||||
; RUN: llc --mtriple x86_64-apple-darwin -filetype=obj -O0 %s -o %t.o
|
||||
; RUN: llvm-objdump --macho -d --no-show-raw-insn %t.o | FileCheck %s
|
||||
|
||||
; CHECK: .long {{[0-9]+}} @ KIND_JUMP_TABLE32
|
||||
; CHECK: .long {{[0-9]+}} @ KIND_JUMP_TABLE32
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -m -d %p/Inputs/hello.obj.macho-x86_64 -no-show-raw-insn -print-imm-hex -no-leading-addr | FileCheck %s
|
||||
# RUN: llvm-objdump --macho -d %p/Inputs/hello.obj.macho-x86_64 --no-show-raw-insn --print-imm-hex --no-leading-addr | FileCheck %s
|
||||
|
||||
# CHECK: (__TEXT,__text) section
|
||||
# CHECK: _main:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -m -d %p/Inputs/exeThread.macho-x86_64 -dis-symname start -no-show-raw-insn -full-leading-addr -print-imm-hex | FileCheck %s
|
||||
# RUN: llvm-objdump --macho -d %p/Inputs/exeThread.macho-x86_64 --dis-symname start --no-show-raw-insn --full-leading-addr --print-imm-hex | FileCheck %s
|
||||
|
||||
# CHECK: (__TEXT,__text) section
|
||||
# CHECK: start:
|
||||
|
@ -18,8 +18,8 @@
|
|||
# CHECK-NOT: 0000000100000d22
|
||||
# CHECK-NOT: _main:
|
||||
|
||||
# not RUN: llvm-objdump -m -d %p/Inputs/exeThread.macho-x86_64 -dis-symname _environ 2>&1 | FileCheck -check-prefix BAD-SYMAME-1 %s
|
||||
# not RUN: llvm-objdump --macho -d %p/Inputs/exeThread.macho-x86_64 --dis-symname _environ 2>&1 | FileCheck --check-prefix BAD-SYMAME-1 %s
|
||||
BAD-SYMAME-1: -dis-symname: _environ not in the section
|
||||
|
||||
# not RUN: llvm-objdump -m -d %p/Inputs/exeThread.macho-x86_64 -dis-symname __mh_execute_header 2>&1 | FileCheck -check-prefix BAD-SYMAME-2 %s
|
||||
# not RUN: llvm-objdump --macho -d %p/Inputs/exeThread.macho-x86_64 --dis-symname __mh_execute_header 2>&1 | FileCheck --check-prefix BAD-SYMAME-2 %s
|
||||
BAD-SYMAME-2: -dis-symname: __mh_execute_header not in any section
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: llvm-objdump -m -d -full-leading-addr -print-imm-hex -no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s -check-prefix=TEXT
|
||||
// RUN: llvm-objdump --macho -d --full-leading-addr --print-imm-hex --no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s --check-prefix=TEXT
|
||||
|
||||
TEXT: (__TEXT,__text) section
|
||||
TEXT_NEXT: _main:
|
||||
|
@ -12,7 +12,7 @@ TEXT_NEXT: 0000000100000f76 addq $0x10, %rsp
|
|||
TEXT_NEXT: 0000000100000f7a popq %rbp
|
||||
TEXT_NEXT: 0000000100000f7b retq
|
||||
|
||||
// RUN: llvm-objdump -m -D -full-leading-addr -print-imm-hex -no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s -check-prefix=ALL
|
||||
// RUN: llvm-objdump --macho -D --full-leading-addr --print-imm-hex --no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s --check-prefix=ALL
|
||||
|
||||
ALL: (__TEXT,__text) section
|
||||
ALL_NEXT: _main:
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
// RUN: dsymutil -f -oso-prepend-path=%p/../../dsymutil/ %p/../../dsymutil/Inputs/basic.macho.x86_64 -o %t1.dSYM
|
||||
// RUN: llvm-objdump -d -g -dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t0
|
||||
// RUN: llvm-objdump -dg -dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t1
|
||||
// RUN: llvm-objdump -d -g --dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t0
|
||||
// RUN: llvm-objdump --dg --dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t1
|
||||
// RUN: cmp %t0 %t1
|
||||
// RUN: FileCheck --input-file %t0 %s
|
||||
|
||||
CHECK: Disassembly of section __TEXT,__text:
|
||||
|
||||
// RUN: llvm-objdump -m -d -g -dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-fat | FileCheck -check-prefix MACHO_DSYM %s
|
||||
// RUN: llvm-objdump -m -d -g -dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-thin | FileCheck -check-prefix MACHO_DSYM %s
|
||||
// RUN: llvm-objdump -m -d -g -dsym %p/Inputs/hello-macho-thin.dwarf %p/Inputs/hello-macho-thin | FileCheck -check-prefix MACHO_DSYM %s
|
||||
// RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-fat | FileCheck --check-prefix MACHO_DSYM %s
|
||||
// RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-thin | FileCheck --check-prefix MACHO_DSYM %s
|
||||
// RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-thin.dwarf %p/Inputs/hello-macho-thin | FileCheck --check-prefix MACHO_DSYM %s
|
||||
|
||||
MACHO_DSYM: (__TEXT,__text) section
|
||||
|
||||
// RUN: llvm-objdump -m -d -g -dsym %p/../Inputs/libbogus11.a %p/../../dsymutil/Inputs/basic.macho.x86_64 2>&1 | FileCheck -check-prefix BAD_INPUT %s
|
||||
// RUN: llvm-objdump --macho -d -g --dsym %p/../Inputs/libbogus11.a %p/../../dsymutil/Inputs/basic.macho.x86_64 2>&1 | FileCheck --check-prefix BAD_INPUT %s
|
||||
|
||||
BAD_INPUT: is not a Mach-O or Universal file type.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/kextbundle.macho-x86_64 | FileCheck %s
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/kextbundle.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: (__TEXT,__text) section
|
||||
CHECK: _foo:
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# RUN: llvm-objdump -m -disassemble %p/Inputs/macho-disassemble-stab-x86_64 | FileCheck %s
|
||||
# RUN: llvm-objdump --macho -d %p/Inputs/macho-disassemble-stab-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: (__TEXT,__text) section
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.stripped.macho-x86_64 | FileCheck %s
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.exe.stripped.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: (__TEXT,__text) section
|
||||
CHECK: 0000000100000f30 pushq %rbp
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
RUN: llvm-objdump -m -dylibs-used %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s -check-prefix=USED
|
||||
RUN: llvm-objdump --macho --dylibs-used %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s --check-prefix=USED
|
||||
USED: /usr/lib/foo1.dylib (compatibility version 0.0.0, current version 0.0.0)
|
||||
USED: /usr/lib/foo2.dylib (compatibility version 0.0.0, current version 0.0.0, weak)
|
||||
USED: /usr/lib/foo3.dylib (compatibility version 0.0.0, current version 0.0.0, reexport)
|
||||
USED: /usr/lib/foo4.dylib (compatibility version 0.0.0, current version 0.0.0, lazy)
|
||||
USED: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
|
||||
|
||||
RUN: llvm-objdump -m -dylib-id %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s -check-prefix=ID
|
||||
RUN: llvm-objdump --macho --dylib-id %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s --check-prefix=ID
|
||||
ID: /usr/lib/foo.dylib
|
||||
|
||||
RUN: llvm-objdump -m -dylib-id -no-leading-headers %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s -check-prefix=IDNOHEADERS
|
||||
RUN: llvm-objdump --macho --dylib-id --no-leading-headers %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s --check-prefix=IDNOHEADERS
|
||||
IDNOHEADERS-NOT: dylibLoadKinds.macho-x86_64:
|
||||
IDNOHEADERS: /usr/lib/foo.dylib
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -dwarf=frames %p/Inputs/eh_frame.macho-arm64 2>/dev/null | FileCheck %s
|
||||
# RUN: llvm-objdump --dwarf=frames %p/Inputs/eh_frame.macho-arm64 2>/dev/null | FileCheck %s
|
||||
|
||||
# CHECK: .eh_frame contents:
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# RUN: llvm-objdump -macho -exports-trie -arch x86_64 \
|
||||
# RUN: llvm-objdump --macho --exports-trie --arch x86_64 \
|
||||
# RUN: %p/Inputs/exports-trie.macho-x86_64 2>/dev/null | FileCheck %s
|
||||
# RUN: llvm-objdump -macho -exports-trie -arch x86_64 \
|
||||
# RUN: llvm-objdump --macho --exports-trie --arch x86_64 \
|
||||
# RUN: %p/Inputs/weak-bind.macho-x86_64 2>/dev/null | FileCheck --check-prefix=EXE %s
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-darwin -filetype=obj | llvm-objdump -m -objc-meta-data - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-darwin -filetype=obj | llvm-objdump --macho --objc-meta-data - | FileCheck %s
|
||||
|
||||
.section __DATA,__objc_imageinfo,regular,no_dead_strip
|
||||
.long 0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: llvm-objdump -macho -indirect-symbols %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump -macho -indirect-symbols -non-verbose %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE
|
||||
RUN: llvm-objdump --macho --indirect-symbols %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho --indirect-symbols --non-verbose %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s --check-prefix=NON_VERBOSE
|
||||
|
||||
CHECK: Indirect symbols for (__TEXT,__stubs) 1 entries
|
||||
CHECK: address index name
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -info-plist - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --info-plist - | FileCheck %s
|
||||
|
||||
.section __TEXT, __info_plist
|
||||
.ascii "This is the (__TEXT,__info_plist) section\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -info-plist - | FileCheck %s
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -info-plist -no-leading-headers - | FileCheck --check-prefix=NOHEADER %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --info-plist - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --info-plist --no-leading-headers - | FileCheck --check-prefix=NOHEADER %s
|
||||
|
||||
.section __TEXT, __info_plist
|
||||
.asciz "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -macho -lazy-bind %p/Inputs/lazy-bind.macho-x86_64 \
|
||||
# RUN: llvm-objdump --macho --lazy-bind %p/Inputs/lazy-bind.macho-x86_64 \
|
||||
# RUN: | FileCheck %s
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: llvm-mc < %s -triple i386-apple-darwin -filetype=obj | llvm-objdump -m -section __DATA,__litp - | FileCheck %s
|
||||
# RUN: llvm-mc < %s -triple i386-apple-darwin -filetype=obj | llvm-objdump -m -section __DATA,__litp -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE
|
||||
# RUN: llvm-mc < %s --triple i386-apple-darwin -filetype=obj | llvm-objdump --macho --section __DATA,__litp - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple i386-apple-darwin -filetype=obj | llvm-objdump --macho --section __DATA,__litp --non-verbose - | FileCheck %s --check-prefix=NON-VERBOSE
|
||||
|
||||
.cstring
|
||||
L1: .asciz "Hello world\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __DATA,__litp - | FileCheck %s
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __DATA,__litp -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __DATA,__litp - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __DATA,__litp --non-verbose - | FileCheck %s --check-prefix=NON-VERBOSE
|
||||
|
||||
.cstring
|
||||
L1: .asciz "Hello world\n"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal4 - | FileCheck %s -check-prefix=CHECK-LIT4
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal4 -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE-LIT4
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal8 - | FileCheck %s -check-prefix=CHECK-LIT8
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal8 -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE-LIT8
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal16 - | FileCheck %s -check-prefix=CHECK-LIT16
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal16 -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE-LIT16
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __TEXT,__literal4 - | FileCheck %s --check-prefix=CHECK-LIT4
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __TEXT,__literal4 --non-verbose - | FileCheck %s --check-prefix=NON-VERBOSE-LIT4
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __TEXT,__literal8 - | FileCheck %s --check-prefix=CHECK-LIT8
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __TEXT,__literal8 --non-verbose - | FileCheck %s --check-prefix=NON-VERBOSE-LIT8
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __TEXT,__literal16 - | FileCheck %s --check-prefix=CHECK-LIT16
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __TEXT,__literal16 --non-verbose - | FileCheck %s --check-prefix=NON-VERBOSE-LIT16
|
||||
|
||||
.literal4
|
||||
.float 2.5
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %s | llvm-objdump -macho -private-headers - | FileCheck %s
|
||||
# RUN: yaml2obj %s | llvm-objdump --macho --private-headers - | FileCheck %s
|
||||
|
||||
--- !mach-o
|
||||
FileHeader:
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# RUN: llvm-objdump -m -objc-meta-data %p/Inputs/Objc2.64bit.exe.macho-x86_64 | FileCheck %s -check-prefix=OBJC2_64BIT_EXE
|
||||
# RUN: llvm-objdump -m -objc-meta-data %p/Inputs/Objc2.64bit.obj.macho-x86_64 | FileCheck %s -check-prefix=OBJC2_64BIT_OBJ
|
||||
# RUN: llvm-objdump -m -objc-meta-data %p/Inputs/Objc2.32bit.exe.macho-i386 | FileCheck %s -check-prefix=OBJC2_32BIT_EXE
|
||||
# RUN: llvm-objdump -m -objc-meta-data %p/Inputs/Objc2.32bit.obj.macho-i386 | FileCheck %s -check-prefix=OBJC2_32BIT_OBJ
|
||||
# RUN: llvm-objdump -m -objc-meta-data %p/Inputs/Objc1.32bit.exe.macho-i386 | FileCheck %s -check-prefix=OBJC1_32BIT_EXE
|
||||
# RUN: llvm-objdump -m -objc-meta-data %p/Inputs/Objc1.32bit.obj.macho-i386 | FileCheck %s -check-prefix=OBJC1_32BIT_OBJ
|
||||
# RUN: llvm-objdump -m -section __OBJC,__protocol %p/Inputs/Objc1.32bit.exe.macho-i386 | FileCheck %s -check-prefix=PROTOCOL
|
||||
# RUN: llvm-objdump -m -objc-meta-data %p/Inputs/Objc2.64bit.obj.dylib-x86_64 | FileCheck %s -check-prefix=OBJC2_64BIT_DYLIB
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/Objc2.64bit.exe.macho-x86_64 | FileCheck %s --check-prefix=OBJC2_64BIT_EXE
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/Objc2.64bit.obj.macho-x86_64 | FileCheck %s --check-prefix=OBJC2_64BIT_OBJ
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/Objc2.32bit.exe.macho-i386 | FileCheck %s --check-prefix=OBJC2_32BIT_EXE
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/Objc2.32bit.obj.macho-i386 | FileCheck %s --check-prefix=OBJC2_32BIT_OBJ
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/Objc1.32bit.exe.macho-i386 | FileCheck %s --check-prefix=OBJC1_32BIT_EXE
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/Objc1.32bit.obj.macho-i386 | FileCheck %s --check-prefix=OBJC1_32BIT_OBJ
|
||||
# RUN: llvm-objdump --macho --section __OBJC,__protocol %p/Inputs/Objc1.32bit.exe.macho-i386 | FileCheck %s --check-prefix=PROTOCOL
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/Objc2.64bit.obj.dylib-x86_64 | FileCheck %s --check-prefix=OBJC2_64BIT_DYLIB
|
||||
|
||||
OBJC2_64BIT_EXE: Contents of (__DATA,__objc_classlist) section
|
||||
OBJC2_64BIT_EXE: 0000000100002028 0x1000029f0
|
||||
|
|
|
@ -1,74 +1,74 @@
|
|||
// These test checks that llvm-objdump will not crash with malformed Mach-O
|
||||
// files. So the check line is not all that important but the bug fixes to
|
||||
// make sure llvm-objdump is robust is what matters.
|
||||
# RUN: not llvm-objdump -macho -objc-meta-data \
|
||||
# RUN: not llvm-objdump --macho --objc-meta-data \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0001.macho 2>&1 \
|
||||
# RUN: | FileCheck -check-prefix=m0001 %s
|
||||
|
||||
# m0001: mem-crup-0001.macho': truncated or malformed object (addr field plus size of section 2 in LC_SEGMENT_64 command 0 greater than than the segment's vmaddr plus vmsize)
|
||||
|
||||
# RUN: not llvm-objdump -macho -objc-meta-data \
|
||||
# RUN: not llvm-objdump --macho --objc-meta-data \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0006.macho 2>&1 \
|
||||
# RUN: | FileCheck -check-prefix=m0006 %s
|
||||
|
||||
# m0006: malformed-machos/mem-crup-0006.macho': truncated or malformed object (section contents at offset 4128 with a size of 176, overlaps section contents at offset 4128 with a size of 8)
|
||||
|
||||
# RUN: not llvm-objdump -macho -objc-meta-data \
|
||||
# RUN: not llvm-objdump --macho --objc-meta-data \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0010.macho 2>&1 \
|
||||
# RUN: | FileCheck -check-prefix=m0010 %s
|
||||
|
||||
# m0010: mem-crup-0010.macho': truncated or malformed object (section contents at offset 4320 with a size of 80, overlaps section contents at offset 4320 with a size of 8)
|
||||
|
||||
# RUN: not llvm-objdump -macho -objc-meta-data \
|
||||
# RUN: not llvm-objdump --macho --objc-meta-data \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0040.macho 2>&1 \
|
||||
# RUN: | FileCheck -check-prefix=m0040 %s
|
||||
|
||||
# m0040: mem-crup-0040.macho': truncated or malformed object (offset field plus size field of section 2 in LC_SEGMENT_64 command 1 extends past the end of the file)
|
||||
|
||||
# RUN: not llvm-objdump -macho -objc-meta-data \
|
||||
# RUN: not llvm-objdump --macho --objc-meta-data \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0080.macho 2>&1 \
|
||||
# RUN: | FileCheck -check-prefix=m0080 %s
|
||||
|
||||
# m0080: mem-crup-0080.macho': truncated or malformed object (addr field plus size of section 2 in LC_SEGMENT_64 command 1 greater than than the segment's vmaddr plus vmsize)
|
||||
|
||||
# RUN: llvm-objdump -macho -objc-meta-data \
|
||||
# RUN: llvm-objdump --macho --objc-meta-data \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0261.macho
|
||||
|
||||
# RUN: not llvm-objdump -macho -disassemble \
|
||||
# RUN: not llvm-objdump --macho -d \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0337.macho 2>&1 \
|
||||
# RUN: | FileCheck -check-prefix=m0337 %s
|
||||
|
||||
# m0337: mem-crup-0337.macho': truncated or malformed object (section relocation entries at offset 0 with a size of 512, overlaps Mach-O headers at offset 0 with a size of 2048)
|
||||
|
||||
RUN: not llvm-objdump -macho -disassemble %p/Inputs/macho-invalid-symbol-nsect 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-NSECT %s
|
||||
RUN: not llvm-objdump --macho -d %p/Inputs/macho-invalid-symbol-nsect 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-NSECT %s
|
||||
INVALID-SYMBOL-NSECT: macho-invalid-symbol-nsect': truncated or malformed object (bad section index: 97 for symbol at index 1)
|
||||
|
||||
RUN: not llvm-objdump -macho -disassemble %p/Inputs/macho-invalid-symbol-nsect-archive 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-NSECT-ARCHIVE %s
|
||||
RUN: not llvm-objdump --macho -d %p/Inputs/macho-invalid-symbol-nsect-archive 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-NSECT-ARCHIVE %s
|
||||
INVALID-SYMBOL-NSECT-ARCHIVE: macho-invalid-symbol-nsect-archive(macho-invalid-symbol-nsect): truncated or malformed object (bad section index: 97 for symbol at index 1)
|
||||
|
||||
RUN: not llvm-objdump -macho -disassemble %p/Inputs/macho-invalid-symbol-indr 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-INDR %s
|
||||
RUN: not llvm-objdump --macho -d %p/Inputs/macho-invalid-symbol-indr 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-INDR %s
|
||||
INVALID-SYMBOL-INDR: macho-invalid-symbol-indr': truncated or malformed object (bad n_value: 22 past the end of string table, for N_INDR symbol at index 1)
|
||||
|
||||
RUN: not llvm-objdump -macho -disassemble -arch all %p/Inputs/macho-invalid-symbol-indr-archive-universal 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-INDR-ARCHIVE-UNIVERSAL %s
|
||||
RUN: not llvm-objdump --macho -d --arch all %p/Inputs/macho-invalid-symbol-indr-archive-universal 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-INDR-ARCHIVE-UNIVERSAL %s
|
||||
INVALID-SYMBOL-INDR-ARCHIVE-UNIVERSAL: macho-invalid-symbol-indr-archive-universal(macho-invalid-symbol-indr) (for architecture i386): truncated or malformed object (bad n_value: 22 past the end of string table, for N_INDR symbol at index 1)
|
||||
|
||||
RUN: not llvm-objdump -macho -disassemble %p/Inputs/macho-invalid-symbol-strx 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-STRX %s
|
||||
RUN: not llvm-objdump --macho -d %p/Inputs/macho-invalid-symbol-strx 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-STRX %s
|
||||
INVALID-SYMBOL-STRX: macho-invalid-symbol-strx': truncated or malformed object (bad string table index: 22 past the end of string table, for symbol at index 1)
|
||||
|
||||
RUN: not llvm-objdump -disassemble %p/Inputs/macho-invalid-symbol-strx 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-STRX-NO-MACHO-FLAG %s
|
||||
RUN: not llvm-objdump -d %p/Inputs/macho-invalid-symbol-strx 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-STRX-NO-MACHO-FLAG %s
|
||||
INVALID-SYMBOL-STRX-NO-MACHO-FLAG: macho-invalid-symbol-strx': truncated or malformed object (bad string index: 22 for symbol at index 1)
|
||||
|
||||
RUN: not llvm-objdump -macho -disassemble -arch all %p/Inputs/macho-invalid-symbol-strx-universal 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-STRX-UNIVERSAL %s
|
||||
RUN: not llvm-objdump --macho -d --arch all %p/Inputs/macho-invalid-symbol-strx-universal 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-STRX-UNIVERSAL %s
|
||||
INVALID-SYMBOL-STRX-UNIVERSAL: macho-invalid-symbol-strx-universal' (for architecture i386): truncated or malformed object (bad string table index: 22 past the end of string table, for symbol at index 1)
|
||||
|
||||
RUN: not llvm-objdump -macho -disassemble %p/Inputs/macho-invalid-symbol-lib_ordinal 2>&1 | FileCheck -check-prefix INVALID-SYMBOL-LIB_ORDINAL %s
|
||||
RUN: not llvm-objdump --macho -d %p/Inputs/macho-invalid-symbol-lib_ordinal 2>&1 | FileCheck --check-prefix INVALID-SYMBOL-LIB_ORDINAL %s
|
||||
INVALID-SYMBOL-LIB_ORDINAL: macho-invalid-symbol-lib_ordinal': truncated or malformed object (bad library ordinal: 7 for symbol at index 2)
|
||||
|
||||
RUN: not llvm-objdump -macho -objc-meta-data %p/Inputs/macho-invalid-bind-entry 2>&1 | FileCheck -check-prefix INVALID-BIND-ENTRY %s
|
||||
RUN: not llvm-objdump --macho --objc-meta-data %p/Inputs/macho-invalid-bind-entry 2>&1 | FileCheck --check-prefix INVALID-BIND-ENTRY %s
|
||||
INVALID-BIND-ENTRY: macho-invalid-bind-entry': truncated or malformed object (for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB bad library ordinal: 83 (max 0) for opcode at: 0x0)
|
||||
|
||||
RUN: llvm-objdump -macho -r -arch x86_64 %p/Inputs/macho-invalid-reloc-section-index 2>&1 | FileCheck -check-prefix INVALID-RELOC-SECTION-INDEX %s
|
||||
RUN: llvm-objdump --macho -r --arch x86_64 %p/Inputs/macho-invalid-reloc-section-index 2>&1 | FileCheck --check-prefix INVALID-RELOC-SECTION-INDEX %s
|
||||
INVALID-RELOC-SECTION-INDEX: 00000021 False byte False UNSIGND False 8388613 (?,?)
|
||||
|
||||
RUN: not llvm-objdump -bind -g -macho -r -rebase -s -section-headers -t -unwind-info %p/Inputs/macho-invalid-linker-command 2>&1 | FileCheck -check-prefix INVALID-LINKCMD %s
|
||||
RUN: not llvm-objdump --bind -g --macho -r --rebase -s --section-headers -t --unwind-info %p/Inputs/macho-invalid-linker-command 2>&1 | FileCheck --check-prefix INVALID-LINKCMD %s
|
||||
INVALID-LINKCMD: truncated or malformed object (load command 4 LC_LINKER_OPTION string #2 is not NULL terminated)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -unwind-info %p/Inputs/malformed-unwind.macho-x86_64 | FileCheck %s
|
||||
# RUN: llvm-objdump --unwind-info %p/Inputs/malformed-unwind.macho-x86_64 | FileCheck %s
|
||||
|
||||
# CHECK: Contents of __unwind_info section:
|
||||
# [...]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
RUN: llvm-objdump -macho -private-header %p/Inputs/malformed-macho.bin %p/Inputs/empty.macho-armv7 2>&1 | FileCheck %s -check-prefix=MALFORMED
|
||||
RUN: llvm-objdump --macho --private-header %p/Inputs/malformed-macho.bin %p/Inputs/empty.macho-armv7 2>&1 | FileCheck %s --check-prefix=MALFORMED
|
||||
MALFORMED: is not an object file
|
||||
MALFORMED-NEXT: Mach header
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: llvm-objdump -d -m %p/Inputs/nofirst-symbol.macho-x86_64 | FileCheck %s
|
||||
// RUN: llvm-objdump -d --macho %p/Inputs/nofirst-symbol.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: 0: 90 nop
|
||||
CHECK: _foo:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __FOO,__bar -full-leading-addr -print-imm-hex -no-show-raw-insn - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __FOO,__bar --full-leading-addr --print-imm-hex --no-show-raw-insn - | FileCheck %s
|
||||
|
||||
.section __FOO, __bar
|
||||
_foo:
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# RUN: llvm-objdump -macho -objc-meta-data %p/Inputs/empty.macho-armv7 | FileCheck %s
|
||||
# RUN: llvm-objdump --macho --objc-meta-data %p/Inputs/empty.macho-armv7 | FileCheck %s
|
||||
|
||||
# CHECK: empty.macho-armv7:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: llvm-objdump -macho -r %p/Inputs/macho-preload-x86_64 | FileCheck %s
|
||||
// RUN: llvm-objdump --macho -r %p/Inputs/macho-preload-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: Local relocation information 1 entries
|
||||
CHECK: address pcrel length extern type scattered symbolnum/value
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -private-headers %p/Inputs/thread.macho-i386 | FileCheck %s
|
||||
RUN: llvm-objdump --macho --private-headers %p/Inputs/thread.macho-i386 | FileCheck %s
|
||||
|
||||
CHECK: Load command 9
|
||||
CHECK: cmd LC_UNIXTHREAD
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: llvm-objdump -macho -private-header %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
// RUN: llvm-objdump --macho --private-header %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: Mach header
|
||||
CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
// RUN: | FileCheck %s -check-prefix=ROUTINE
|
||||
// RUN: llvm-objdump -p %p/Inputs/exeThread.macho-x86_64 \
|
||||
// RUN: | FileCheck %s -check-prefix=THREAD
|
||||
// RUN: llvm-objdump -macho -p -arch i386 %p/Inputs/macho-universal.x86_64.i386 \
|
||||
// RUN: llvm-objdump --macho -p --arch i386 %p/Inputs/macho-universal.x86_64.i386 \
|
||||
// RUN: | FileCheck %s -check-prefix=FATi386
|
||||
// RUN: llvm-objdump -p -arch i386 %p/Inputs/macho-universal.x86_64.i386 \
|
||||
// RUN: llvm-objdump -p --arch i386 %p/Inputs/macho-universal.x86_64.i386 \
|
||||
// RUN: | FileCheck %s -check-prefix=FATi386
|
||||
// RUN: llvm-objdump -p -non-verbose %p/Inputs/hello.obj.macho-x86_64 \
|
||||
// RUN: llvm-objdump -p --non-verbose %p/Inputs/hello.obj.macho-x86_64 \
|
||||
// RUN: | FileCheck %s -check-prefix=NON_VERBOSE
|
||||
// RUN: llvm-objdump -p %p/Inputs/codesig.macho-x86_64 \
|
||||
// RUN: | FileCheck %s -check-prefix=CODESIG
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-objdump -macho -rebase -arch x86_64 \
|
||||
# RUN: llvm-objdump --macho --rebase --arch x86_64 \
|
||||
# RUN: %p/Inputs/rebase.macho-x86_64 | FileCheck %s
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -r %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho -r %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: Relocation information (__TEXT,__text) 2 entries
|
||||
CHECK: address pcrel length extern type scattered symbolnum/value
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -s %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho -s %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: Contents of section __text:
|
||||
CHECK: 0000 554889e5 4883ec20 488d0500 000000c7 UH..H.. H.......
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -h %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho -h %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: Sections:
|
||||
CHECK: Idx Name Size VMA Type
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: llvm-objdump -m -section __DATA,__mod_init_func %p/Inputs/dylibModInit.macho-x86_64 | FileCheck %s -check-prefix=MODINIT
|
||||
// RUN: llvm-objdump -m -section __DATA,__mod_init_func -non-verbose %p/Inputs/dylibModInit.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE
|
||||
// RUN: llvm-objdump -m -section __DATA,__mod_init_func %p/Inputs/objModInit.macho-x86_64 | FileCheck %s -check-prefix=OBJ_MODINIT
|
||||
// RUN: llvm-objdump --macho --section __DATA,__mod_init_func %p/Inputs/dylibModInit.macho-x86_64 | FileCheck %s --check-prefix=MODINIT
|
||||
// RUN: llvm-objdump --macho --section __DATA,__mod_init_func --non-verbose %p/Inputs/dylibModInit.macho-x86_64 | FileCheck %s --check-prefix=NON_VERBOSE
|
||||
// RUN: llvm-objdump --macho --section __DATA,__mod_init_func %p/Inputs/objModInit.macho-x86_64 | FileCheck %s --check-prefix=OBJ_MODINIT
|
||||
|
||||
MODINIT: Contents of (__DATA,__mod_init_func) section
|
||||
MODINIT: 0x0000000000001000 0x0000000000000f30 _libinit
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# RUN: llvm-objdump -macho -section=__data %p/Inputs/bind2.macho-x86_64 | FileCheck %s
|
||||
# RUN: llvm-objdump --macho --section=__data %p/Inputs/bind2.macho-x86_64 | FileCheck %s
|
||||
|
||||
# CHECK: bind2.macho-x86_64:
|
||||
|
||||
# RUN: llvm-objdump -macho -section=__data %p/Inputs/section.macho-armv7 | FileCheck -check-prefix CHECK-ADDR %s
|
||||
# RUN: llvm-objdump --macho --section=__data %p/Inputs/section.macho-armv7 | FileCheck --check-prefix CHECK-ADDR %s
|
||||
|
||||
# CHECK-ADDR: 00000004 00000001 00000002
|
||||
|
||||
# RUN: llvm-objdump -macho -section=__const %p/Inputs/section.macho-armv7 | FileCheck -check-prefix CHECK-BYTES %s
|
||||
# RUN: llvm-objdump --macho --section=__const %p/Inputs/section.macho-armv7 | FileCheck --check-prefix CHECK-BYTES %s
|
||||
|
||||
# CHECK-BYTES: 0000000c 00000003 04 05 06
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/stub-nosyms.macho-x86_64 | FileCheck %s
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/stub-nosyms.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: 0000000000000001 callq 0x7 ## symbol stub for: _foo
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -d %p/Inputs/stubbed.dylib.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho -d %p/Inputs/stubbed.dylib.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: (__TEXT,__text) section
|
||||
CHECK-NOT: func
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -t %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho -t %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: SYMBOL TABLE:
|
||||
CHECK-NEXT: 000000000000003b l O __TEXT,__cstring L_.str
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=EXE
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.obj.macho-x86_64 | FileCheck %s -check-prefix=ObjC-OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.exe.macho-x86_64 | FileCheck %s -check-prefix=ObjC-EXE
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello_cpp.exe.macho-x86_64 | FileCheck %s -check-prefix=CXX-EXE
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s --check-prefix=OBJ
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s --check-prefix=EXE
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/ObjC.obj.macho-x86_64 | FileCheck %s --check-prefix=ObjC-OBJ
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/ObjC.exe.macho-x86_64 | FileCheck %s --check-prefix=ObjC-EXE
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello_cpp.exe.macho-x86_64 | FileCheck %s --check-prefix=CXX-EXE
|
||||
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-i386 | FileCheck %s -check-prefix=i386-OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-i386 | FileCheck %s -check-prefix=i386-EXE
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.obj.macho-i386 | FileCheck %s --check-prefix=i386-OBJ
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=i386-EXE
|
||||
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -no-symbolic-operands %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO-SYM-OPS-OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -no-symbolic-operands %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=NO-SYM-OPS-EXE
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex --no-symbolic-operands %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s --check-prefix=NO-SYM-OPS-OBJ
|
||||
// RUN: llvm-objdump -d --macho --no-show-raw-insn --full-leading-addr --print-imm-hex --no-symbolic-operands %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s --check-prefix=NO-SYM-OPS-EXE
|
||||
|
||||
OBJ: 0000000000000008 leaq L_.str(%rip), %rax ## literal pool for: "Hello world\n"
|
||||
OBJ: 0000000000000026 callq _printf
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho -d - | FileCheck %s
|
||||
|
||||
nop
|
||||
x:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s
|
||||
# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho -d - | FileCheck %s
|
||||
|
||||
nop
|
||||
x:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
RUN: llvm-objdump -macho -d %p/Inputs/truncated-section.dylib.macho-x86_64 | FileCheck %s
|
||||
RUN: llvm-objdump --macho -d %p/Inputs/truncated-section.dylib.macho-x86_64 | FileCheck %s
|
||||
|
||||
CHECK: _func:
|
||||
CHECK: retq
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue