reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -arch all \
RUN: | FileCheck %s -check-prefix UEXE-all
RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d -no-show-raw-insn -full-leading-addr -print-imm-hex -arch all \
RUN: | FileCheck %s -check-prefix UEXE-all
RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -arch i386 \
RUN: | FileCheck %s -check-prefix UArchive-i386
RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -universal-headers -m \
RUN: | FileCheck %s -check-prefix FAT
RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -universal-headers -m \
RUN: -non-verbose | FileCheck %s -check-prefix NON-VERBOSE
RUN: llvm-objdump %p/Inputs/macho-universal64.x86_64.i386 -universal-headers \
RUN: -m | FileCheck %s -check-prefix FAT-64

UEXE-all: macho-universal.x86_64.i386 (architecture x86_64):
UEXE-all: (__TEXT,__text) section
UEXE-all: _main:
UEXE-all: 0000000100000f60	pushq	%rbp
UEXE-all: 0000000100000f61	movq	%rsp, %rbp
UEXE-all: macho-universal.x86_64.i386 (architecture i386):
UEXE-all: (__TEXT,__text) section
UEXE-all: _main:
UEXE-all: 00001fa0	pushl	%ebp
UEXE-all: 00001fa1	movl	%esp, %ebp

UArchive-i386: Archive : {{.*}}/macho-universal-archive.x86_64.i386
UArchive-i386: macho-universal-archive.x86_64.i386(foo.o):
UArchive-i386: (__TEXT,__text) section
UArchive-i386: _foo:
UArchive-i386: 00000000	pushl	%ebp
UArchive-i386: 00000001	movl	%esp, %ebp
UArchive-i386: 00000003	popl	%ebp
UArchive-i386: 00000004	retl

FAT: Fat headers
FAT: fat_magic FAT_MAGIC
FAT: nfat_arch 2
FAT: architecture x86_64
FAT:     cputype CPU_TYPE_X86_64
FAT:     cpusubtype CPU_SUBTYPE_X86_64_ALL
FAT:     capabilities CPU_SUBTYPE_LIB64
FAT:     offset 4096
FAT:     size 4360
FAT:     align 2^12 (4096)
FAT: architecture i386
FAT:     cputype CPU_TYPE_I386
FAT:     cpusubtype CPU_SUBTYPE_I386_ALL
FAT:     capabilities 0x0
FAT:     offset 12288
FAT:     size 4336
FAT:     align 2^12 (4096)

NON-VERBOSE: Fat headers
NON-VERBOSE: fat_magic 0xcafebabe
NON-VERBOSE: nfat_arch 2
NON-VERBOSE: architecture 0
NON-VERBOSE:     cputype 16777223
NON-VERBOSE:     cpusubtype 3
NON-VERBOSE:     capabilities 0x80
NON-VERBOSE:     offset 4096
NON-VERBOSE:     size 4360
NON-VERBOSE:     align 2^12 (4096)
NON-VERBOSE: architecture 1
NON-VERBOSE:     cputype 7
NON-VERBOSE:     cpusubtype 3
NON-VERBOSE:     capabilities 0x0
NON-VERBOSE:     offset 12288
NON-VERBOSE:     size 4336
NON-VERBOSE:     align 2^12 (4096)

FAT-64: Fat headers
FAT-64: fat_magic FAT_MAGIC_64
FAT-64: nfat_arch 2