/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 // When applied to a (non-fat) Mach-O file, this behaves as if the 84 // The data does not begin with a fat binary or Mach-O magic number. 88 // The Mach-O fat binary file ends abruptly, without enough space 109 // If the data is a plain Mach-O file, rather than a fat binary file, 111 // single object file is the Mach-O file. [all …]
|
D | macho_id.h | 38 #include <mach/machine.h> 39 #include <mach-o/loader.h> 67 // mach-o data segment(s). 68 // Return 0 on error (e.g., if the file is not a mach-o file) 72 // For the given |cpu_type|, and |cpu_subtype| return the MD5 for the mach-o
|
D | macho_reader.cc | 30 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com> 69 " nor a Mach-O object file\n", filename_.c_str()); in BadHeader() 87 // Fat binaries always use big-endian, so read the magic number in in Read() 88 // that endianness. To recognize Mach-O magic numbers, which can use in Read() 97 reporter_->TooShort(); in Read() 106 // Read this object file entry, byte-swapping as appropriate. in Read() 107 cursor >> objfile->cputype in Read() 108 >> objfile->cpusubtype in Read() 109 >> objfile->offset in Read() 110 >> objfile->size in Read() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Object/ |
D | MachOFormat.h | 1 //===- MachOFormat.h - Mach-O Format Structures And Constants ---*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 12 // Mach object files. 17 // On a Mach system, see the <mach-o/...> includes for more information, in 18 // particular <mach-o/loader.h>. 20 //===----------------------------------------------------------------------===// 30 /// General Mach platform information. 31 namespace mach { 84 } // end namespace mach 86 /// Format information for Mach object files. [all …]
|
D | MachOObject.h | 1 //===- MachOObject.h - Mach-O Object File Wrapper ---------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 26 /// \brief Wrapper object for manipulating Mach-O object files. 28 /// This class is designed to implement a full-featured, efficient, portable, 29 /// and robust Mach-O interface to Mach-O object files. It does not attempt to 30 /// smooth over rough edges in the Mach-O format or generalize access to object 33 /// The class is designed around accessing the Mach-O object which is expected 39 /// access. This allows the API to be zero-copy on the common paths. 60 /// Whether the object is 64-bit. 84 /// \brief Load a Mach-O object from a MemoryBuffer object. [all …]
|
/external/valgrind/coregrind/ |
D | fixup_macho_loadcmds.c | 5 Can be compiled as either a 32- or 64-bit program (doesn't matter). 13 much newer and concerns linking 64-bit tool executables for 16 --- Problem (1) ------------------------------------------------ 23 The bug causes 64-bit tool executables to segfault at startup, 30 tells the linker "-stack_addr 0x134000000 -stack_size 0x800000". 82 --- Problem (2) ------------------------------------------------ 115 #include <mach-o/loader.h> 116 #include <mach-o/nlist.h> 117 #include <mach-o/fat.h> 118 #include <mach/i386/thread_status.h> [all …]
|
/external/llvm/lib/MC/ |
D | MCSectionMachO.cpp | 1 //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===// 8 //===----------------------------------------------------------------------===// 16 /// SectionTypeDescriptors - These are strings that describe the various section 49 /// SectionAttrDescriptors - This is an array of descriptors for section 166 /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec". 167 /// This is a string that can appear after a .section directive in a mach-o 182 auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef { in ParseSectionSpecifier() 193 return "mach-o section specifier requires a segment whose length is " in ParseSectionSpecifier() 198 return "mach-o section specifier requires a segment and section " in ParseSectionSpecifier() 202 return "mach-o section specifier requires a section whose length is " in ParseSectionSpecifier() [all …]
|
/external/google-breakpad/src/client/mac/handler/ |
D | dynamic_images.h | 35 // is limited to use by 32-bit tasks. 40 #include <mach/mach.h> 41 #include <mach-o/dyld.h> 42 #include <mach-o/loader.h> 99 // Helper functions to deal with 32-bit/64-bit Mach-O differences. 108 // Represents a single dynamically loaded mach-o image 135 // Full path to mach-o binary 158 // filetype from the Mach-O header. 161 // Return true if the task is a 64-bit architecture. 213 return (*const_cast<DynamicImageRef*>(this)->p) [all …]
|
/external/valgrind/coregrind/m_ume/ |
D | macho.c | 2 /*--------------------------------------------------------------------*/ 3 /*--- User-mode execve() for Mach-O executables m_ume_macho.c ---*/ 4 /*--------------------------------------------------------------------*/ 10 Copyright (C) 2005-2017 Apple Inc. 26 02111-1307, USA. 50 #include <mach/mach.h> 52 #include <mach-o/dyld.h> 53 #include <mach-o/fat.h> 54 #include <mach-o/loader.h> 73 vki_uint8_t *text; // start of text segment (i.e. the mach headers) [all …]
|
/external/swiftshader/third_party/LLVM/lib/MC/ |
D | MCSectionMachO.cpp | 1 //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===// 8 //===----------------------------------------------------------------------===// 16 /// SectionTypeDescriptors - These are strings that describe the various section 49 /// SectionAttrDescriptors - This is an array of descriptors for section 166 /// StripSpaces - This removes leading and trailing spaces from the StringRef. 171 Str = Str.substr(0, Str.size()-1); in StripSpaces() 174 /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec". 175 /// This is a string that can appear after a .section directive in a mach-o 191 return "mach-o section specifier requires a segment and section " in ParseSectionSpecifier() 200 return "mach-o section specifier requires a segment whose length is " in ParseSectionSpecifier() [all …]
|
/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/tools/llvm-nm/ |
D | llvm-nm.cpp | 1 //===-- llvm-nm.cpp - Symbol table dumping utility for llvm ---------------===// 8 //===----------------------------------------------------------------------===// 17 //===----------------------------------------------------------------------===// 59 clEnumVal(darwin, "Darwin -m format"), clEnumValEnd), 61 cl::alias OutputFormat2("f", cl::desc("Alias for --format"), 67 cl::opt<bool> UndefinedOnly("undefined-only", 69 cl::alias UndefinedOnly2("u", cl::desc("Alias for --undefined-only"), 75 cl::alias DynamicSyms2("D", cl::desc("Alias for --dynamic"), 78 cl::opt<bool> DefinedOnly("defined-only", 80 cl::alias DefinedOnly2("U", cl::desc("Alias for --defined-only"), [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/google-breakpad/src/tools/mac/dump_syms/ |
D | dump_syms_tool.mm | 1 // -*- mode: c++ -*- 35 #include <mach-o/arch.h> 63 return a->address < b->address; 66 // Copy the CFI data from |from_module| into |to_module|, for any non- 75 from_module->GetStackFrameEntries(&from_data); 79 to_module->GetStackFrameEntries(&to_data); 86 Module::Address from_entry_end = from_entry->address + from_entry->size; 91 if (from_entry->address > (*to_it)->address) 98 if (to_it == to_data.end() || (from_entry->address < (*to_it)->address && 99 from_entry_end < (*to_it)->address)) { [all …]
|
/external/llvm/test/tools/llvm-readobj/ |
D | macho-universal-x86_64.i386.test | 1 RUN: llvm-readobj -h %p/Inputs/macho-universal.x86_64.i386 \ 2 RUN: | FileCheck %s -check-prefix MULTIHEADER 4 RUN: llvm-readobj -sections %p/Inputs/macho-universal.x86_64.i386 \ 5 RUN: | FileCheck %s -check-prefix MULTISECTIONS 7 RUN: llvm-readobj -h %p/Inputs/macho-universal-archive.x86_64.i386 \ 8 RUN: | FileCheck %s -check-prefix MULTIHEADER-ARCHIVE 10 RUN: llvm-readobj -sections %p/Inputs/macho-universal-archive.x86_64.i386 \ 11 RUN: | FileCheck %s -check-prefix MULTISECTIONS-ARCHIVE 13 MULTIHEADER: Format: Mach-O 64-bit x86-64 18 MULTIHEADER: CpuType: X86-64 (0x1000007) [all …]
|
/external/valgrind/coregrind/m_debuginfo/ |
D | readmacho.c | 2 /*--------------------------------------------------------------------*/ 3 /*--- Reading of syms & debug info from Mach-O files. ---*/ 4 /*--- readmacho.c ---*/ 5 /*--------------------------------------------------------------------*/ 11 Copyright (C) 2005-2017 Apple Inc. 27 02111-1307, USA. 59 /* --- !!! --- EXTERNAL HEADERS start --- !!! --- */ 60 #include <mach-o/loader.h> 61 #include <mach-o/nlist.h> 62 #include <mach-o/fat.h> [all …]
|
D | priv_readmacho.h | 2 /*--------------------------------------------------------------------*/ 3 /*--- Reading of syms & debug info from Mach-O files. ---*/ 4 /*--- priv_readmacho.h ---*/ 5 /*--------------------------------------------------------------------*/ 27 02111-1307, USA. 38 /* Identify a Mach-O object file by peering at the first few bytes of 42 /* The central function for reading Mach-O debug info. For the 43 object/exe specified by the DebugInfo, find Mach-O sections, then read 44 the symbols, line number info, file name info, CFA (stack-unwind 53 /*--------------------------------------------------------------------*/ [all …]
|
/external/llvm/lib/Object/ |
D | MachOObjectFile.cpp | 1 //===- MachOObjectFile.cpp - Mach-O object file binding ---------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 50 static T getStruct(const MachOObjectFile *O, const char *P) { in getStruct() argument 52 if (P < O->getData().begin() || P + sizeof(T) > O->getData().end()) in getStruct() 57 if (O->isLittleEndian() != sys::IsLittleEndianHost) in getStruct() 63 static Expected<T> getStructOrErr(const MachOObjectFile *O, const char *P) { in getStructOrErr() argument 65 if (P < O->getData().begin() || P + sizeof(T) > O->getData().end()) in getStructOrErr() 66 return malformedError("Structure read out-of-range"); in getStructOrErr() 70 if (O->isLittleEndian() != sys::IsLittleEndianHost) in getStructOrErr() [all …]
|
/external/llvm/tools/llvm-size/ |
D | llvm-size.cpp | 1 //===-- llvm-size.cpp - Print the size of each object section ---*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===// 43 clEnumVal(darwin, "Darwin -m format"), clEnumValEnd), 50 clEnumValN(darwin, "m", "Darwin -m format"), clEnumValEnd), 67 ArchFlags("arch", cl::desc("architecture(s) from a Mach-O file to dump"), 73 Radix("-radix", cl::desc("Print size in radix. Only 8, 10, and 16 are valid"), 78 cl::values(clEnumValN(octal, "o", "Print size in octal"), 110 // "libx.a(foo.o)" after the ToolName before the error message. It sets 136 …the file name and which architecture slice it // is from, for example: "foo.o (for architecture i3… [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_procmaps_mac.cc | 1 //===-- sanitizer_procmaps_mac.cc -----------------------------------------===// 8 //===----------------------------------------------------------------------===// 10 // Information about the process mappings (Mac-specific parts). 11 //===----------------------------------------------------------------------===// 19 #include <mach-o/dyld.h> 20 #include <mach-o/loader.h> 31 // More information about Mach-O headers can be found in mach-o/loader.h 32 // Each Mach-O image has a header (mach_header or mach_header_64) starting with 35 // A load command is at least two 32-bit words: the command type and the 48 // _dyld_image_count is thread-unsafe. We need to register callbacks for in Reset() [all …]
|
/external/compiler-rt/test/asan/TestCases/Darwin/ |
D | sandbox-symbolizer.cc | 1 // In a non-forking sandbox, we can't spawn an external symbolizer, but dladdr() 6 // RUN: %clangxx_asan -O0 %s -o %t 7 // RUN: not %run sandbox-exec -p '(version 1)(allow default)(deny process-fork)' %t 2>&1 | FileChec… 8 // RUN: not %run sandbox-exec -p '(version 1)(allow default)(deny mach-priv-task-port)' %t 2>&1 | F… 9 …UN: env ASAN_SYMBOLIZER_PATH="" not %run sandbox-exec -p '(version 1)(allow default)(deny mach-pri… 10 // RUN: %clangxx_asan -O3 %s -o %t 11 // RUN: not %run sandbox-exec -p '(version 1)(allow default)(deny process-fork)' %t 2>&1 | FileChec… 12 // RUN: not %run sandbox-exec -p '(version 1)(allow default)(deny mach-priv-task-port)' %t 2>&1 | F… 13 …UN: env ASAN_SYMBOLIZER_PATH="" not %run sandbox-exec -p '(version 1)(allow default)(deny mach-pri… 20 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}} in main()
|
/external/libjpeg-turbo/ |
D | acinclude.m4 | 2 # -------------------------- 6 AC_ARG_VAR(NASM, [NASM command (used to build the x86/x86-64 SIMD code)]) 9 test -z "$NASM" && AC_MSG_ERROR([no nasm (Netwide Assembler) found]) 17 objfmt='Win64-COFF' 20 objfmt='Win32-COFF' 27 os2-emx*) # not tested 47 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 48 objfmt='BSD-a.out' 73 objfmt='Mach-O64' 76 objfmt='Mach-O' [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/MC/ |
D | MCMachObjectWriter.h | 1 //===-- llvm/MC/MCMachObjectWriter.h - Mach Object Writer -------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 76 /// MachSymbolData - Helper struct for containing some precomputed information 87 /// The target specific Mach-O writer instance. 142 bool is64Bit() const { return TargetObjectWriter->is64Bit(); } in is64Bit() 144 uint32_t CPUType = TargetObjectWriter->getCPUType() & in isARM() 145 ~object::mach::CTFM_ArchMask; in isARM() 146 return CPUType == object::mach::CTM_ARM; in isARM() 154 /// WriteSegmentLoadCommand - Write a segment load command. 156 /// \arg NumSections - The number of sections in this segment. [all …]
|
/external/libmojo/mojo/edk/system/ |
D | channel.h | 2 // Use of this source code is governed by a BSD-style license that can be 21 // Channel provides a thread-safe interface to read and write arbitrary 22 // delimited messages over an underlying I/O channel, optionally transferring 61 // data (i.e. HANDLEs on Windows, Mach ports on OSX). 72 // Index of Mach port in the original vector of PlatformHandles. 75 // Mach port name. 85 // Actual number of Mach ports encoded in the extra header. 88 // Array of encoded Mach ports. If |num_ports| > 0, |entires[0]| through 89 // to |entries[num_ports-1]| inclusive are valid. 96 // The windows HANDLE. HANDLEs are guaranteed to fit inside 32-bits. [all …]
|
/external/v8/src/base/platform/ |
D | platform-macos.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 // Platform-specific code for MacOS goes here. For the POSIX-compatible 6 // parts, the implementation is in platform-posix.cc. 9 #include <mach/mach_init.h> 10 #include <mach-o/dyld.h> 11 #include <mach-o/getsect.h> 19 #include <mach/mach.h> 20 #include <mach/semaphore.h> 21 #include <mach/task.h> 22 #include <mach/vm_statistics.h> [all …]
|