| /external/google-breakpad/src/common/mac/ |
| D | macho_reader.h | 1 // -*- mode: C++ -*- 31 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 33 // macho_reader.h: A class for parsing Mach-O files. 38 #include <mach-o/loader.h> 39 #include <mach-o/fat.h> 69 // A parser for fat binary files, used to store universal binaries. 70 // When applied to a (non-fat) Mach-O file, this behaves as if the 71 // file were a fat file containing a single object file. 75 // A class for reporting errors found while parsing fat binary files. The 84 // The data does not begin with a fat binary or Mach-O magic number. [all …]
|
| D | macho_walker.cc | 29 // macho_walker.cc: Iterate over the load commands in a mach-o file 41 #include <mach-o/fat.h> 42 #include <mach-o/loader.h> 55 : file_(-1), in MachoWalker() 68 : file_(-1), in MachoWalker() 79 if (file_ != -1) in ~MachoWalker() 111 size = memory_size_ - static_cast<size_t>(offset); in ReadBytes() 134 // Read the magic bytes that's common amongst all mach-o files in FindHeader() 152 // If we don't have a fat header, check if the cpu type matches the single in FindHeader() 170 // Read the fat header and find an appropriate architecture in FindHeader() [all …]
|
| D | dump_syms.h | 1 // -*- mode: c++ -*- 31 // Author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 34 // reading debugging information from Mach-O files and writing it out as a 37 #include <mach-o/loader.h> 78 // the name of a fat file, a Mach-O file, or a dSYM bundle containing either 89 // expected to be the data obtained from reading a fat file, or a Mach-O file. 163 // then the data is .eh_frame-format data; otherwise, it is standard DWARF 194 // object_filename_ contains. If object_filename_ refers to a fat binary, 195 // this may have more than one element; if it refers to a Mach-O file, this 205 // fat binary, it includes an indication of the particular architecture [all …]
|
| D | macho_reader_unittest.cc | 29 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 200 : fat(kBigEndian), in FatReaderFixture() 206 // here, start, and Mark are file offsets in 'fat'. in FatReaderFixture() 207 fat.start() = 0; in FatReaderFixture() 209 // Append a 'fat_arch' entry to 'fat', with the given field values. 212 fat in AppendFatArch() 219 // Append |n| dummy 'fat_arch' entries to 'fat'. The cpu type and 226 ASSERT_TRUE(fat.GetContents(&contents)); in ReadFat() 240 test_assembler::Section fat; member 252 fat in TEST_F() [all …]
|
| D | macho_reader.cc | 29 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 73 fprintf(stderr, "%s: file is neither a fat binary file" in BadHeader() 74 " nor a Mach-O object file\n", filename_.c_str()); in BadHeader() 92 // Fat binaries always use big-endian, so read the magic number in in Read() 93 // that endianness. To recognize Mach-O magic numbers, which can use in Read() 99 // How many object files does this fat binary contain? in Read() 102 reporter_->TooShort(); in Read() 111 // Read this object file entry, byte-swapping as appropriate. in Read() 122 reporter_->TooShort(); in Read() 128 objfile.size > fat_size - objfile.offset) { in Read() [all …]
|
| D | arch_utilities.cc | 35 #include <mach/machine.h> 36 #include <mach-o/arch.h> 37 #include <mach-o/fat.h> 42 #include <mach-o/utils.h> 106 #pragma clang diagnostic ignored "-Wdeprecated-declarations" in GetArchInfoFromName() 110 return ArchInfo{info->cputype, info->cpusubtype}; in GetArchInfoFromName() 124 #pragma clang diagnostic ignored "-Wdeprecated-declarations" in GetNameFromCPUType() 128 return info->name; in GetNameFromCPUType()
|
| D | macho_utilities.cc | 29 // macho_utilties.cc: Utilities for dealing with mach-o files 40 #include <mach-o/fat.h> 41 #include <mach-o/loader.h> 44 uc->cmd = ByteSwap(uc->cmd); in breakpad_swap_uuid_command() 45 uc->cmdsize = ByteSwap(uc->cmdsize); in breakpad_swap_uuid_command() 49 lc->cmd = ByteSwap(lc->cmd); in breakpad_swap_load_command() 50 lc->cmdsize = ByteSwap(lc->cmdsize); in breakpad_swap_load_command() 54 dc->cmd = ByteSwap(dc->cmd); in breakpad_swap_dylib_command() 55 dc->cmdsize = ByteSwap(dc->cmdsize); in breakpad_swap_dylib_command() 57 dc->dylib.name.offset = ByteSwap(dc->dylib.name.offset); in breakpad_swap_dylib_command() [all …]
|
| D | super_fat_arch.h | 31 // super_fat_arch.h: A class to handle 64-bit object files. Has conversions to 38 #include <mach-o/fat.h> 41 // Similar to struct fat_arch, except size-related parameters support 42 // 64-bits.
|
| /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/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/google-breakpad/src/third_party/mac_headers/ |
| D | README | 2 processes Mach-O files on Linux. 4 From xnu-8792.41.9 (https://github.com/apple-oss-distributions/xnu at 5c2921b) 7 mach/boolean.h 8 mach/machine.h 9 mach/thread_status.h 10 mach/vm_prot.h 11 mach/i386/boolean.h 12 mach/i386/vm_types.h 13 mach/arm/boolean.h 14 mach/arm/vm_types.h [all …]
|
| /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/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. 76 #include <mach-o/nlist.h> 77 #include <mach-o/loader.h> 78 #include <mach-o/fat.h> 79 #include <mach/mach.h> 104 #define NMAGIC 0410 /* read-only text */ [all …]
|
| /external/llvm/lib/Object/ |
| D | MachOUniversal.cpp | 1 //===- MachOUniversal.cpp - Mach-O universal binary -------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 27 std::string StringMsg = "truncated or malformed fat file (" + Msg.str() + ")"; in malformedError() 36 // Universal binary headers have big-endian byte order. in getUniversalBinaryStruct() 45 if (!Parent || Index >= Parent->getNumberOfObjects()) { in ObjectForArch() 49 StringRef ParentData = Parent->getData(); in ObjectForArch() 50 if (Parent->getMagic() == MachO::FAT_MAGIC) { in ObjectForArch() 57 } else { // Parent->getMagic() == MachO::FAT_MAGIC_64 in ObjectForArch() 74 StringRef ParentData = Parent->getData(); in getAsObjectFile() [all …]
|
| /external/llvm/lib/ObjectYAML/ |
| D | ObjectYAML.cpp | 1 //===- ObjectYAML.cpp - YAML utilities for object files -------------------===// 8 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 39 } else if (IO.mapTag("!mach-o")) { in mapping() 42 } else if (IO.mapTag("!fat-mach-o")) { in mapping() 48 std::string Tag = In.getCurrentNode()->getRawTag(); in mapping()
|
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
| D | ObjectYAML.cpp | 1 //===- ObjectYAML.cpp - YAML utilities for object files -------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 42 } else if (IO.mapTag("!mach-o")) { in mapping() 45 } else if (IO.mapTag("!fat-mach-o")) { in mapping() 56 if (N->getRawTag().empty()) in mapping() 60 N->getRawTag() + "'!"); in mapping()
|
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
| D | MachOUniversal.cpp | 1 //===- MachOUniversal.cpp - Mach-O universal binary -------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 26 std::string StringMsg = "truncated or malformed fat file (" + Msg.str() + ")"; in malformedError() 35 // Universal binary headers have big-endian byte order. in getUniversalBinaryStruct() 45 if (!Parent || Index >= Parent->getNumberOfObjects()) { in ObjectForArch() 49 StringRef ParentData = Parent->getData(); in ObjectForArch() 50 if (Parent->getMagic() == MachO::FAT_MAGIC) { in ObjectForArch() 54 } else { // Parent->getMagic() == MachO::FAT_MAGIC_64 in ObjectForArch() [all …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/lib/Object/ |
| D | MachOUniversal.cpp | 1 //===- MachOUniversal.cpp - Mach-O universal binary -------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 27 std::string StringMsg = "truncated or malformed fat file (" + Msg.str() + ")"; in malformedError() 36 // Universal binary headers have big-endian byte order. in getUniversalBinaryStruct() 46 if (!Parent || Index >= Parent->getNumberOfObjects()) { in ObjectForArch() 50 StringRef ParentData = Parent->getData(); in ObjectForArch() 51 if (Parent->getMagic() == MachO::FAT_MAGIC) { in ObjectForArch() 55 } else { // Parent->getMagic() == MachO::FAT_MAGIC_64 in ObjectForArch() [all …]
|
| /external/tensorflow/tensorflow/lite/ios/ |
| D | hide_symbols_with_allowlist.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 17 # A script to merge Mach-O object files into a single object file and hide 29 set -ue 34 LD_DEBUGGABLE_FLAGS="-x" 37 # LD_DEBUGGABLE_FLAGS="-d" 40 if grep -q "^__Z" "${ALLOWLIST_FILE_PATH}"; then 44 "More info can be found in go/ios-symbols-hiding." \ 50 framework=$($MKTEMP -t framework -d) 51 unzip "${INPUT_FRAMEWORK}" -d "${framework}"/ 57 archs_str=$(xcrun lipo -info "${framework}/${executable_file}" | [all …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/lib/ObjectYAML/ |
| D | ObjectYAML.cpp | 1 //===- ObjectYAML.cpp - YAML utilities for object files -------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 49 } else if (IO.mapTag("!mach-o")) { in mapping() 52 } else if (IO.mapTag("!fat-mach-o")) { in mapping() 73 if (N->getRawTag().empty()) in mapping() 77 N->getRawTag() + "'!"); in mapping()
|
| /external/llvm/include/llvm/Object/ |
| D | MachOUniversal.h | 1 //===- MachOUniversal.h - Mach-O universal binaries -------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 10 // This file declares Mach-O fat/universal binaries. 12 //===----------------------------------------------------------------------===// 57 if (Parent->getMagic() == MachO::FAT_MAGIC) in getCPUType() 59 else // Parent->getMagic() == MachO::FAT_MAGIC_64 in getCPUType() 63 if (Parent->getMagic() == MachO::FAT_MAGIC) in getCPUSubType() 65 else // Parent->getMagic() == MachO::FAT_MAGIC_64 in getCPUSubType() 69 if (Parent->getMagic() == MachO::FAT_MAGIC) in getOffset() 71 else // Parent->getMagic() == MachO::FAT_MAGIC_64 in getOffset() [all …]
|
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
| D | MachOUniversal.h | 1 //===- MachOUniversal.h - Mach-O universal binaries -------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This file declares Mach-O fat/universal binaries. 11 //===----------------------------------------------------------------------===// 58 if (Parent->getMagic() == MachO::FAT_MAGIC) in getCPUType() 60 else // Parent->getMagic() == MachO::FAT_MAGIC_64 in getCPUType() 64 if (Parent->getMagic() == MachO::FAT_MAGIC) in getCPUSubType() 66 else // Parent->getMagic() == MachO::FAT_MAGIC_64 in getCPUSubType() 70 if (Parent->getMagic() == MachO::FAT_MAGIC) in getOffset() [all …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Object/ |
| D | MachOUniversal.h | 1 //===- MachOUniversal.h - Mach-O universal binaries -------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This file declares Mach-O fat/universal binaries. 11 //===----------------------------------------------------------------------===// 60 if (Parent->getMagic() == MachO::FAT_MAGIC) in getCPUType() 62 else // Parent->getMagic() == MachO::FAT_MAGIC_64 in getCPUType() 66 if (Parent->getMagic() == MachO::FAT_MAGIC) in getCPUSubType() 68 else // Parent->getMagic() == MachO::FAT_MAGIC_64 in getCPUSubType() 72 if (Parent->getMagic() == MachO::FAT_MAGIC) in getOffset() [all …]
|
| /external/google-breakpad/src/tools/mac/upload_system_symbols/ |
| D | upload_system_symbols.go | 37 The tool can also be used to only dump libraries or upload from a directory. See -help for more 61 …breakpadTools = flag.String("breakpad-tools", "out/Release/", "Path to the Breakpad tools direc… 62 …uploadOnlyPath = flag.String("upload-from", "", "Upload a directory of symbol files that has bee… 63 …dumpOnlyPath = flag.String("dump-to", "", "Dump the symbols to the specified directory, but do… 64 …systemRoot = flag.String("system-root", "", "Path to the root of the Mac OS X system whose s… 66 …apiKey = flag.String("api-key", "", "API key to use. If this is present, the `sym-upload… 94 "https://staging-crashsymbolcollector-pa.googleapis.com", 95 "https://prod-crashsymbolcollector-pa.googleapis.com", 125 // -upload-from specified, so handle that case early. 133 log.Fatal("Need a -system-root to dump symbols for") [all …]
|
| /external/lzma/CPP/7zip/ |
| D | Guid.txt | 1 {23170F69-40C1-278A-0000-00yy00xx0000} 154 00 - 04 // old IFolderManager 166 {23170F69-40C1-278A-1000-000110xx0000} 210 DA Fat 215 DF Mach-O 233 {23170F69-40C1-278A-1000-000100020000} ContextMenu.h::CZipContextMenu 235 // {23170F69-40C1-278A-1000-000100030000} // CAgentArchiveHandler 236 // {23170F69-40C1-278B- old codecs clsids 237 // {23170F69-40C1-278D-1000-000100020000} OptionsDialog.h::CLSID_CSevenZipOptions 239 {23170F69-40C1-2790-id} Codec Decoders [all …]
|