Home
last modified time | relevance | path

Searched +full:mach +full:- +full:o (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/external/google-breakpad/src/common/mac/
Dmacho_reader.h1 // -*- 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>
71 // When applied to a (non-fat) Mach-O file, this behaves as if the
85 // The data does not begin with a fat binary or Mach-O magic number.
89 // The Mach-O fat binary file ends abruptly, without enough space
110 // If the data is a plain Mach-O file, rather than a fat binary file,
112 // single object file is the Mach-O file.
[all …]
Dmacho_id.h38 #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
Dmacho_reader.cc30 // Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com>
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()
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()
126 reporter_->MisplacedObjectFile(); in Read()
134 // If this is a little-endian Mach-O file, fix the cursor's endianness. in Read()
[all …]
Dmacho_walker.cc30 // 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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/
DMagic.h1 //===- llvm/BinaryFormat/Magic.h - File magic identification ----*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
18 /// file_magic - An "enum class" enumeration of file types based on magic (the
30 macho_object, ///< Mach-O Object file
31 macho_executable, ///< Mach-O Executable
32 macho_fixed_virtual_memory_shared_lib, ///< Mach-O Shared Lib, FVM
33 macho_core, ///< Mach-O Core File
34 macho_preload_executable, ///< Mach-O Preloaded Executable
35 macho_dynamically_linked_shared_lib, ///< Mach-O dynlinked shared lib
[all …]
/external/llvm/lib/MC/
DMCSectionMachO.cpp1 //===- 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/
Ddynamic_images.h35 // 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/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCSectionMachO.cpp1 //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
15 /// SectionTypeDescriptors - These are strings that describe the various section
60 /// SectionAttrDescriptors - This is an array of descriptors for section
177 /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec".
178 /// This is a string that can appear after a .section directive in a mach-o
193 auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef { in ParseSectionSpecifier()
204 return "mach-o section specifier requires a segment whose length is " in ParseSectionSpecifier()
209 return "mach-o section specifier requires a segment and section " in ParseSectionSpecifier()
[all …]
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp1 //===-- 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/DebugInfo/
Ddwarfdump-macho-universal.test1 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/google-breakpad/src/tools/mac/dump_syms/
Ddump_syms_tool.cc1 // -*- mode: c++ -*-
35 #include <mach-o/arch.h>
67 return a->address < b->address; in StackFrameEntryComparator()
70 // Copy the CFI data from |from_module| into |to_module|, for any non-
79 from_module->GetStackFrameEntries(&from_data); in CopyCFIDataBetweenModules()
83 to_module->GetStackFrameEntries(&to_data); in CopyCFIDataBetweenModules()
90 Module::Address from_entry_end = from_entry->address + from_entry->size; in CopyCFIDataBetweenModules()
95 if (from_entry->address > (*to_it)->address) in CopyCFIDataBetweenModules()
102 if (to_it == to_data.end() || (from_entry->address < (*to_it)->address && in CopyCFIDataBetweenModules()
103 from_entry_end < (*to_it)->address)) { in CopyCFIDataBetweenModules()
[all …]
/external/llvm/test/ObjectYAML/MachO/
Dfat_macho_i386_x86_64.yaml3 --- !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/tools/llvm-readobj/
Dmacho-universal-x86_64.i386.test1 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/llvm/lib/Object/
DMachOObjectFile.cpp1 //===- 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/
Dllvm-size.cpp1 //===-- 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/rust/crates/ppv-lite86/src/
Dgeneric.rs15 fn from(d: [u32; 4]) -> Self { in from()
21 fn from(d: vec128_storage) -> Self { in from()
27 fn from(q: [u64; 2]) -> Self { in from()
33 fn from(q: vec128_storage) -> Self { in from()
39 fn default() -> Self { in default()
46 fn eq(&self, rhs: &Self) -> bool { in eq()
56 pub fn new128(v128: [vec128_storage; 2]) -> Self { in new128()
60 pub fn split128(self) -> [vec128_storage; 2] { in split128()
66 fn from(q: vec256_storage) -> Self { in from()
74 fn from([a, b, c, d]: [u64; 4]) -> Self { in from()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_procmaps_mac.cc1 //===-- 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/
Dsandbox-symbolizer.cc1 // 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/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DMachOObjectFile.cpp1 //===- MachOObjectFile.cpp - Mach-O object file binding -------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
68 static T getStruct(const MachOObjectFile &O, const char *P) { in getStruct() argument
70 if (P < O.getData().begin() || P + sizeof(T) > O.getData().end()) in getStruct()
75 if (O.isLittleEndian() != sys::IsLittleEndianHost) in getStruct()
81 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) { in getStructOrErr() argument
83 if (P < O.getData().begin() || P + sizeof(T) > O.getData().end()) in getStructOrErr()
84 return malformedError("Structure read out-of-range"); in getStructOrErr()
[all …]
/external/google-breakpad/
DMakefile.am34 AM_CPPFLAGS = -I$(top_srcdir)/src
40 AM_CXXFLAGS += -I$(top_srcdir)/src/common/android/include
43 AM_CXXFLAGS += -I$(top_srcdir)/src/common/android/testing/include
50 AM_CFLAGS += -fPIC
51 AM_CXXFLAGS += -fPIC
55 ACLOCAL_AMFLAGS = -I m4
61 docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
108 TEST_LIBS = $(GTEST_LIBS) -lgtest_main $(GMOCK_LIBS)
112 -I$(top_srcdir)/src/testing/include \
113 -I$(top_srcdir)/src/testing/googletest/include \
[all …]
/external/angle/src/common/
Dsystem_utils_ios.cpp3 // Use of this source code is governed by a BSD-style license that can be
7 // system_utils_osx.cpp: Implementation of OS-specific functions for OSX
14 #include <mach-o/dyld.h>
15 #include <mach/mach.h>
16 #include <mach/mach_time.h>
Dsystem_utils_mac.cpp3 // Use of this source code is governed by a BSD-style license that can be
7 // system_utils_osx.cpp: Implementation of OS-specific functions for OSX
14 #include <mach-o/dyld.h>
15 #include <mach/mach.h>
16 #include <mach/mach_time.h>
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DMachO.h1 //===- MachO.h - MachO object file implementation ---------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
41 /// DiceRef - This is a value type class that represents a single
42 /// data in code entry in the table in a Mach-O object file.
65 /// ExportEntry encapsulates the current-state-of-the-walk used when doing a
66 /// non-recursive walk of the trie data structure. This allows you to iterate
69 /// for (const llvm::object::ExportEntry &AnExport : Obj->exports(&Err)) {
74 ExportEntry(Error *Err, const MachOObjectFile *O, ArrayRef<uint8_t> Trie);
[all …]
/external/python/cpython3/Lib/ctypes/macholib/
D__init__.py2 Enough Mach-O to make your head spin.
4 See the relevant header files in /usr/include/mach-o
/external/python/cpython2/Lib/ctypes/macholib/
D__init__.py2 Enough Mach-O to make your head spin.
4 See the relevant header files in /usr/include/mach-o

12345678910>>...20