/external/google-breakpad/src/common/mac/ |
D | macho_reader.h | 1 // -*- mode: C++ -*- 32 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 34 // macho_reader.h: A class for parsing Mach-O files. 39 #include <mach-o/loader.h> 40 #include <mach-o/fat.h> 70 // A parser for fat binary files, used to store universal binaries. 71 // When applied to a (non-fat) Mach-O file, this behaves as if the 72 // file were a fat file containing a single object file. 76 // A class for reporting errors found while parsing fat binary files. The 85 // The data does not begin with a fat binary or Mach-O magic number. [all …]
|
D | macho_walker.cc | 30 // macho_walker.cc: Iterate over the load commands in a mach-o file 38 #include <mach-o/arch.h> 39 #include <mach-o/fat.h> 40 #include <mach-o/loader.h> 52 : file_(-1), in MachoWalker() 65 : file_(-1), in MachoWalker() 76 if (file_ != -1) in ~MachoWalker() 87 valid_cpu_type = arch->cputype; in WalkHeader() 109 size = memory_size_ - static_cast<size_t>(offset); in ReadBytes() 132 // Read the magic bytes that's common amongst all mach-o files in FindHeader() [all …]
|
D | macho_reader_unittest.cc | 30 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 197 : fat(kBigEndian), in FatReaderFixture() 203 // here, start, and Mark are file offsets in 'fat'. in FatReaderFixture() 204 fat.start() = 0; in FatReaderFixture() 206 // Append a 'fat_arch' entry to 'fat', with the given field values. 209 fat in AppendFatArch() 216 // Append |n| dummy 'fat_arch' entries to 'fat'. The cpu type and 223 ASSERT_TRUE(fat.GetContents(&contents)); in ReadFat() 237 test_assembler::Section fat; member 249 fat in TEST_F() [all …]
|
/external/llvm-project/llvm/test/ObjectYAML/MachO/ |
D | fat_macho_i386_x86_64.yaml | 1 ## This file contains test cases for generating Fat Mach-O binaries. 3 ## a) Test that yaml2obj emits Fat Mach-O binary and obj2yaml converts it 6 # RUN: yaml2obj --docnum=1 %s | obj2yaml | FileCheck %s 8 --- !fat-mach-o 13 - cputype: 0x00000007 18 - cputype: 0x01000007 24 - FileHeader: 32 - FileHeader: 44 #CHECK: --- !fat-mach-o 49 #CHECK: - cputype: 0x7 [all …]
|
/external/llvm-project/llvm/test/DebugInfo/ |
D | dwarfdump-macho-universal.test | 2 RUN: llvm-dwarfdump -v %S/Inputs/fat-test.o --debug-info | FileCheck %s 4 CHECK: fat-test.o(x86_64): file format Mach-O 64-bit x86-64 6 CHECK-NOT: {{NULL|DW_TAG}} 9 CHECK: fat-test.o(i386): file format Mach-O 32-bit i386 11 CHECK-NOT: {{NULL|DW_TAG}} 14 CHECK: fat-test.o(x86_64h): file format Mach-O 64-bit x86-64 16 CHECK-NOT: {{NULL|DW_TAG}}
|
/external/llvm/test/DebugInfo/ |
D | dwarfdump-macho-universal.test | 1 Reuse a test input from llvm-dsymutil, it's perfect for what we want to exercise 2 RUN: llvm-dwarfdump %S/Inputs/fat-test.o -debug-dump=info | FileCheck %s 4 CHECK: fat-test.o (x86_64): file format Mach-O 64-bit x86-64 6 CHECK-NOT: {{NULL|DW_TAG}} 9 CHECK: fat-test.o (i386): file format Mach-O 32-bit i386 11 CHECK-NOT: {{NULL|DW_TAG}} 14 CHECK: fat-test.o (x86_64h): file format Mach-O 64-bit x86-64 16 CHECK-NOT: {{NULL|DW_TAG}}
|
/external/llvm-project/llvm/test/tools/llvm-objdump/MachO/ |
D | disassemble-g-dsym.test | 1 # RUN: dsymutil -f -oso-prepend-path=%p/../../dsymutil/ %p/../../dsymutil/Inputs/basic.macho.x86_64… 2 # RUN: llvm-objdump -d -g --dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t0 3 # RUN: llvm-objdump -dg --dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t1 5 # RUN: FileCheck --input-file %t0 %s 9 # RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-fat … 10 # RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-thin… 11 # RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-thin.dwarf %p/Inputs/hello-macho-thi… 16 ## neither a Mach-O object nor Universal binary. 18 # RUN: yaml2obj --docnum=1 %s -o %t.a 19 # RUN: llvm-objdump --macho -d -g --dsym %t.a %p/../../dsymutil/Inputs/basic.macho.x86_64 2>&1 | \ [all …]
|
D | universal-arm64.test | 4 # RUN: yaml2obj %s -o %tarm.o 5 # RUN: llvm-objdump %tarm.o --universal-headers --macho | \ 6 # RUN: FileCheck %s --match-full-lines 8 # CHECK: Fat headers 9 # CHECK-NEXT: fat_magic FAT_MAGIC 10 # CHECK-NEXT: nfat_arch 3 11 # CHECK-NEXT: architecture arm64 12 # CHECK-NEXT: cputype CPU_TYPE_ARM64 13 # CHECK-NEXT: cpusubtype CPU_SUBTYPE_ARM64_ALL 14 # CHECK-NEXT: capabilities 0x0 [all …]
|
/external/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/ |
D | archive.test | 1 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \ 3 CHECK: libfat-test.a(x86_64)(fat-test.o): file format Mach-O 64-bit x86-64 5 CHECK: libfat-test.a(i386)(fat-test.o): file format Mach-O 32-bit i386 8 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \ 9 RUN: --arch=i386 | FileCheck %s --check-prefix=I386 10 I386-NOT: 64-bit 11 I386: file format Mach-O 32-bit i386 12 I386-NOT: 64-bit 14 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \ 15 RUN: --arch=i386 --arch=x86_64 | FileCheck %s [all …]
|
/external/llvm-project/lld/test/MachO/ |
D | dylib-stub.yaml | 9 ## taking a non-stub dylib and editing the appropriate fields. 12 # RUN: split-file %s %t 13 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o 14 # RUN: yaml2obj %t/fat.dylib.yaml > %t/fat.dylib 15 # RUN: %lld -lSystem %t/test.o %t/fat.dylib -o %t/test 16 # RUN: llvm-objdump --macho --lazy-bind %t/test | FileCheck %s 19 #--- test.s 25 #--- fat.dylib.yaml 26 --- !fat-mach-o 31 - cputype: 0x01000007 [all …]
|
/external/llvm/test/ObjectYAML/MachO/ |
D | fat_macho_i386_x86_64.yaml | 3 --- !fat-mach-o 8 - cputype: 0x00000007 13 - cputype: 0x01000007 19 - FileHeader: 27 - FileHeader: 39 #CHECK: --- !fat-mach-o 44 #CHECK: - cputype: 0x00000007 49 #CHECK: - cputype: 0x01000007 55 #CHECK: - !mach-o 64 #CHECK: - !mach-o
|
/external/llvm/test/Object/ |
D | macho-invalid.test | 1 // An odd Mach-O file, with just a mach header with all but the magic field 4 RUN: llvm-objdump -private-headers %p/Inputs/macho-invalid-zero-ncmds -macho \ 5 RUN: | FileCheck -check-prefix ZERO-NCMDS %s 6 ZERO-NCMDS: MH_MAGIC_64 0 0 0x00 OBJECT 0 0 0x00000000 8 RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-incomplete-load-command 2>&… 9 RUN: | FileCheck -check-prefix INCOMPLETE-LOADC %s 10 INCOMPLETE-LOADC: truncated or malformed object (load command 0 extends past the end all load comma… 12 RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-incomplete-load-command.1 2… 13 RUN: | FileCheck -check-prefix INCOMPLETE-LOADC-1 %s 14 INCOMPLETE-LOADC-1: truncated or malformed object (load command 1 extends past the end all load com… [all …]
|
/external/llvm-project/llvm/test/tools/llvm-gsymutil/ARM_AArch64/ |
D | fat-macho-dwarf.yaml | 1 ## For mach-o files we might have a universal (fat) mach-o file which 9 # RUN: yaml2obj %s -o %t 10 # RUN: llvm-gsymutil --convert %t --arch armv7 -o %t.armv7.gsym 2>&1 | FileCheck %s --check-prefix=… 11 # RUN: llvm-gsymutil --convert %t --arch arm64 -o %t.arm64.gsym 2>&1 | FileCheck %s --check-prefix=… 12 # RUN: llvm-gsymutil --convert %t -o %t.gsym 2>&1 | FileCheck %s --check-prefix=FAT 15 # ARMV7-NEXT: Output file (armv7): {{.*\.yaml\.tmp\.armv7\.gsym}} 16 # ARMV7-NEXT: Loaded 1 functions from DWARF. 17 # ARMV7-NEXT: Loaded 0 functions from symbol table. 18 # ARMV7-NEXT: Pruned 0 functions, ended with 1 total 21 # ARM64-NEXT: Output file (arm64): {{.*\.yaml\.tmp\.arm64\.gsym}} [all …]
|
/external/llvm-project/llvm/test/tools/llvm-lipo/ |
D | archs-universal-binary-x86.test | 1 # RUN: yaml2obj %s -o %t 2 # RUN: llvm-lipo %t -archs | FileCheck %s 5 --- !fat-mach-o 10 - cputype: 0x00000007 15 - cputype: 0x01000007 21 - !mach-o 30 - !mach-o
|
D | archs-universal-binary-arm.test | 1 # RUN: yaml2obj %s -o %t 2 # RUN: llvm-lipo %t -archs | FileCheck %s 5 --- !fat-mach-o 10 - cputype: 0x0000000C 15 - cputype: 0x0100000C 21 - !mach-o 30 - !mach-o
|
D | thin-executable-universal-binary.test | 2 # UNSUPPORTED: system-windows 3 # RUN: yaml2obj %s -o %t-universal.o 5 # RUN: chmod a-x %t-universal.o 6 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o 7 # RUN: test ! -x %t32.o 9 # RUN: chmod a+x %t-universal.o 10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32-ex.o 11 # RUN: test -x %t32-ex.o 15 --- !fat-mach-o 20 - cputype: 0x00000007 [all …]
|
D | archs-universal-binary-unknown.test | 1 # RUN: yaml2obj %s -o %t 3 # RUN: llvm-lipo %t -archs 2>&1 | FileCheck %s 6 --- !fat-mach-o 11 - cputype: 0x00000007 16 - cputype: 0x01000097 22 - !mach-o 31 - !mach-o
|
D | thin-universal-binary.test | 1 # RUN: yaml2obj %s -o %t 3 # RUN: not llvm-lipo %t -thin arm64_32 -output %t.out 2>&1 | FileCheck --check-prefix=ARCH_NOT_IN_F… 6 # RUN: not llvm-lipo %t -thin aarch101 -output %t.out 2>&1 | FileCheck --check-prefix=INVALID_ARCH … 9 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o 10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o 11 # RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-basic32.o 12 # RUN: cmp %t32.o %t-basic32.o 14 --- !fat-mach-o 19 - cputype: 0x00000007 24 - cputype: 0x01000007 [all …]
|
D | verify-arch-universal-binary.test | 1 # RUN: yaml2obj %s -o %t 3 # RUN: llvm-lipo %t -verify_arch i386 4 # RUN: llvm-lipo %t -verify_arch i386 x86_64 6 # RUN: not llvm-lipo %t -verify_arch aarch64 7 # RUN: not llvm-lipo %t -verify_arch arm64 8 # RUN: yaml2obj %s | not llvm-lipo - -verify_arch aarch64 i386 9 # lipo does not support this (i.e. yaml2obj %s | not lipo -), included to test function with llvm-l… 12 --- !fat-mach-o 17 - cputype: 0x00000007 22 - cputype: 0x01000007 [all …]
|
/external/llvm-project/lld/lib/ReaderWriter/MachO/ |
D | MachONormalizedFile.h | 1 //===- lib/ReaderWriter/MachO/MachONormalizedFile.h -----------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 /// mach-o object files. The normalized view is an in-memory only data structure 14 /// The normalized view easily converts to and from YAML using YAML I/O. 16 /// The normalized view converts to and from binary mach-o object files using 24 /// +---------------+ 25 /// | binary mach-o | 26 /// +---------------+ 30 /// +------------+ +------+ [all …]
|
/external/llvm-project/llvm/test/tools/llvm-libtool-darwin/ |
D | universal-object-flattening.test | 3 # RUN: yaml2obj %s -o %t-universal.o 4 # RUN: yaml2obj %S/Inputs/input1.yaml -o %t-input1.o 5 # RUN: yaml2obj %S/Inputs/input2.yaml -o %t-input2.o 7 # RUN: llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only arm64 10 # RUN: llvm-ar t %t.lib | \ 11 # RUN: FileCheck %s --check-prefix=CHECK-NAMES --implicit-check-not={{.}} -DPREFIX=%basename_t.tmp 13 # CHECK-NAMES: [[PREFIX]]-universal.o 16 # RUN: llvm-nm --print-armap %t.lib | \ 17 # RUN: FileCheck %s --check-prefix=CHECK-SYMBOLS -DPREFIX=%basename_t.tmp --match-full-lines 19 # CHECK-SYMBOLS: Archive map [all …]
|
D | universal-object-output.test | 2 ## llvm-libtool-darwin is given object files for multiple architectures. 4 ## Check that the subtypes of cputype CPU_TYPE_ARM are stored in a fat file: 5 # RUN: yaml2obj %s -o %t.armv6 -DTYPE=0xC -DSUBTYPE=0x6 -DSTRING=_armv6 6 # RUN: yaml2obj %s -o %t.armv7 -DTYPE=0xC -DSUBTYPE=0x9 -DSTRING=_armv7 8 # RUN: llvm-libtool-darwin -static -o %t.lib %t.armv6 %t.armv7 11 # RUN: llvm-lipo -info %t.lib | \ 12 # RUN: FileCheck %s --check-prefix=ARCHS -DFILE=%t.lib 14 # ARCHS: Architectures in the fat file: [[FILE]] are: armv6 armv7 17 # RUN: llvm-libtool-darwin -static -o %t.lib %t.armv6 %t.armv6 %t.armv7 18 # RUN: llvm-lipo -info %t.lib | \ [all …]
|
/external/google-breakpad/src/client/mac/handler/ |
D | breakpad_nlist_64.cc | 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 59 * The version of nlist used as a base is from 10.5.2, libc-498 60 * http://www.opensource.apple.com/darwinsource/10.5.2/Libc-498/gen/nlist.c 63 * http://www.opensource.apple.com/darwinsource/tarballs/apsl/Libc-498.tar.gz 65 * I've modified it to be compatible with 64-bit images. 72 #include <mach-o/nlist.h> 73 #include <mach-o/loader.h> 74 #include <mach-o/fat.h> 75 #include <mach/mach.h> 100 #define NMAGIC 0410 /* read-only text */ [all …]
|
/external/llvm-project/lldb/test/API/commands/target/basic/ |
D | bogus.yaml | 1 --- !fat-mach-o 6 - cputype: 0x0000000C 11 - cputype: 0x0000000C 16 - cputype: 0x0100000C 22 - !mach-o 33 - cmd: LC_SEGMENT 44 - cmd: LC_SYMTAB 50 - cmd: LC_VERSION_MIN_IPHONEOS 54 - cmd: LC_DATA_IN_CODE 60 - n_strx: 4 [all …]
|
/external/llvm-project/llvm/test/Object/ |
D | macho-invalid.test | 1 // An odd Mach-O file, with just a mach header with all but the magic field 4 RUN: llvm-objdump --private-headers %p/Inputs/macho-invalid-zero-ncmds --macho \ 5 RUN: | FileCheck -check-prefix ZERO-NCMDS %s 6 ZERO-NCMDS: MH_MAGIC_64 0 0 0x00 OBJECT 0 0 0x00000000 8 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-incomplete-load-command 2… 9 RUN: | FileCheck -check-prefix INCOMPLETE-LOADC %s 10 INCOMPLETE-LOADC: truncated or malformed object (load command 0 extends past the end all load comma… 12 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-incomplete-load-command.1… 13 RUN: | FileCheck -check-prefix INCOMPLETE-LOADC-1 %s 14 INCOMPLETE-LOADC-1: truncated or malformed object (load command 1 extends past the end all load com… [all …]
|