| /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 …]
|
| D | dump_syms.h | 1 // -*- mode: c++ -*- 32 // Author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 35 // reading debugging information from Mach-O files and writing it out as a 38 #include <mach-o/loader.h> 70 // the name of a universal binary, a Mach-O file, or a dSYM bundle 152 // then the data is .eh_frame-format data; otherwise, it is standard DWARF 180 // object_filename_ contains. If object_filename_ refers to a fat binary, 181 // this may have more than one element; if it refers to a Mach-O file, this 191 // fat binary, it includes an indication of the particular architecture
|
| D | macho_reader.cc | 30 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 70 fprintf(stderr, "%s: file is neither a fat binary file" in BadHeader() 71 " nor a Mach-O object file\n", filename_.c_str()); in BadHeader() 89 // Fat binaries always use big-endian, so read the magic number in in Read() 90 // that endianness. To recognize Mach-O magic numbers, which can use in Read() 96 // How many object files does this fat binary contain? in Read() 99 reporter_->TooShort(); in Read() 108 // Read this object file entry, byte-swapping as appropriate. in Read() 119 reporter_->TooShort(); in Read() 125 objfile.size > fat_size - objfile.offset) { in Read() [all …]
|
| D | macho_utilities.cc | 30 // macho_utilties.cc: Utilities for dealing with mach-o files 37 #include <mach-o/fat.h> 38 #include <mach-o/loader.h> 41 uc->cmd = ByteSwap(uc->cmd); in breakpad_swap_uuid_command() 42 uc->cmdsize = ByteSwap(uc->cmdsize); in breakpad_swap_uuid_command() 46 lc->cmd = ByteSwap(lc->cmd); in breakpad_swap_load_command() 47 lc->cmdsize = ByteSwap(lc->cmdsize); in breakpad_swap_load_command() 51 dc->cmd = ByteSwap(dc->cmd); in breakpad_swap_dylib_command() 52 dc->cmdsize = ByteSwap(dc->cmdsize); in breakpad_swap_dylib_command() 54 dc->dylib.name.offset = ByteSwap(dc->dylib.name.offset); in breakpad_swap_dylib_command() [all …]
|
| D | arch_utilities.cc | 32 #include <mach-o/arch.h> 33 #include <mach-o/fat.h> 71 arm64->name = name; in ArchInfo_arm64() 72 arm64->cputype = CPU_TYPE_ARM64; in ArchInfo_arm64() 73 arm64->cpusubtype = cpu_subtype; in ArchInfo_arm64() 74 arm64->description = "arm 64"; in ArchInfo_arm64() 82 armv7s->name = "armv7s"; in ArchInfo_armv7s() 83 armv7s->cpusubtype = CPU_SUBTYPE_ARM_V7S; in ArchInfo_armv7s() 84 armv7s->description = "arm v7s"; in ArchInfo_armv7s() 163 "Intel x86-64" [all …]
|
| D | super_fat_arch.h | 32 // super_fat_arch.h: A class to handle 64-bit object files. Has conversions to 39 #include <mach-o/fat.h> 42 // Similar to struct fat_arch, except size-related parameters support 43 // 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/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. 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/google-breakpad/src/tools/mac/dump_syms/ |
| D | macho_dump.cc | 30 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 32 // macho_dump.cc: Dump the contents of a Mach-O file. This is mostly 37 #include <mach-o/arch.h> 102 printf(" load command %d: %s-bit segment '%s'\n" in SegmentCommand() 115 return reader_->WalkSegmentSections(segment, &dump_section); in SegmentCommand() 130 check_syscall(mapping == (void *)-1 ? -1 : 0, in DumpFile() 144 if (!super_fat_object_files->ConvertToFatArch(object_files)) { in DumpFile() 154 " fat header:\n:" in DumpFile() 158 i, fat_arch_info->name, fat_arch_info->description, in DumpFile() 176 printf(" Mach-O header:\n" in DumpFile() [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()
|
| D | MachOYAML.cpp | 1 //===- MachOYAML.cpp - MachO YAMLIO implementation ------------------------===// 8 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 38 memset((void *)&Val[Scalar.size()], 0, 16 - Scalar.size()); in input() 51 Out << "-"; in output() 58 if (Scalar[Idx] == '-' || OutIdx >= 16) in input() 90 // If the context isn't already set, tag the document as !mach-o. in mapping() 91 // For Fat files there will be a different tag so they can be differentiated. in mapping() 95 IO.mapTag("!mach-o", true); in mapping() 125 IO.mapTag("!fat-mach-o", true); 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-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()
|
| D | MachOYAML.cpp | 1 //===- MachOYAML.cpp - MachO YAMLIO implementation ------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 48 memset((void *)&Val[Scalar.size()], 0, 16 - Scalar.size()); in input() 65 if (Scalar[Idx] == '-' || OutIdx >= 16) in input() 99 // If the context isn't already set, tag the document as !mach-o. in mapping() 100 // For Fat files there will be a different tag so they can be differentiated. in mapping() 104 IO.mapTag("!mach-o", true); in mapping() 142 IO.mapTag("!fat-mach-o", true); in mapping() [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/google-breakpad/src/tools/mac/upload_system_symbols/ |
| D | upload_system_symbols.go | 38 The tool can also be used to only dump libraries or upload from a directory. See -help for more 62 …breakpadTools = flag.String("breakpad-tools", "out/Release/", "Path to the Breakpad tools direc… 63 …uploadOnlyPath = flag.String("upload-from", "", "Upload a directory of symbol files that has bee… 64 …dumpOnlyPath = flag.String("dump-to", "", "Dump the symbols to the specified directory, but do… 65 …systemRoot = flag.String("system-root", "", "Path to the root of the Mac OS X system whose s… 108 // -upload-from specified, so handle that case early. 116 log.Fatal("Need a -system-root to dump symbols for") 120 // -dump-to specified, so make sure that the path is a directory. 122 log.Fatalf("-dump-to location: %v", err) 124 log.Fatal("-dump-to location is not a directory") [all …]
|
| /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/lzma/CPP/7zip/ |
| D | Guid.txt | 1 {23170F69-40C1-278A-0000-00yy00xx0000} 141 00 - 04 // old IFolderManager 153 {23170F69-40C1-278A-1000-000110xx0000} 189 DA Fat 194 DF Mach-O 212 {23170F69-40C1-278A-1000-000100020000} ContextMenu.h::CZipContextMenu 214 // {23170F69-40C1-278A-1000-000100030000} // CAgentArchiveHandler 215 // {23170F69-40C1-278B- old codecs clsids 216 // {23170F69-40C1-278D-1000-000100020000} OptionsDialog.h::CLSID_CSevenZipOptions 218 {23170F69-40C1-2790-id} Codec Decoders [all …]
|
| /external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/ |
| D | ContentTypeDetector.java | 5 * http://www.eclipse.org/legal/epl-2.0 7 * SPDX-License-Identifier: EPL-2.0 10 * Marc R. Hoffmann - initial API and implementation 25 public static final int UNKNOWN = -1; 74 // Mach-O fat/universal binaries have the same magic header as Java in determineType() 76 // bytes in the same place and in the same big-endian order as major in determineType()
|