Home
last modified time | relevance | path

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

12345678910>>...40

/aosp_15_r20/external/google-breakpad/src/common/mac/
H A Dmacho_reader.h1 // -*- mode: C++ -*-
31 // Original author: Jim Blandy <[email protected]> <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>
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 …]
H A Dmacho_reader.cc29 // Original author: Jim Blandy <[email protected]> <jimb@red-bean.com>
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()
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()
129 reporter_->MisplacedObjectFile(); in Read()
137 // If this is a little-endian Mach-O file, fix the cursor's endianness. in Read()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/debug/macho/
Dmacho.go2 // Use of this source code is governed by a BSD-style
5 // Mach-O header data structures
11 // https://github.com/aidansteele/osx-abi-macho-file-format-reference
17 // A FileHeader represents a Mach-O file header.
39 // A Type is the Mach-O file type, e.g. an object file, executable, or dynamic library.
59 // A Cpu is a Mach-O cpu type.
85 // A LoadCmd is a Mach-O load command.
113 // A Segment32 is a 32-bit Mach-O segment load command.
128 // A Segment64 is a 64-bit Mach-O segment load command.
143 // A SymtabCmd is a Mach-O symbol table command.
[all …]
Dfile.go2 // Use of this source code is governed by a BSD-style
6 Package macho implements access to Mach-O object files.
32 // A File represents an open Mach-O file.
45 // A Load represents any Mach-O load command.
50 // A LoadBytes is the uninterpreted bytes of a Mach-O load command.
55 // A SegmentHeader is the header for a Mach-O 32-bit or 64-bit load segment command.
70 // A Segment represents a Mach-O 32-bit or 64-bit load segment command.
91 func (s *Segment) Open() io.ReadSeeker { return io.NewSectionReader(s.sr, 0, 1<<63-1) }
105 // A Reloc represents a Mach-O relocation.
133 // Data reads and returns the contents of the Mach-O section.
[all …]
Dfat.go2 // Use of this source code is governed by a BSD-style
15 // A FatFile is a Mach-O universal binary that contains at least one architecture.
33 // A FatArch is a Mach-O File inside a FatFile.
41 var ErrNotFat = &FormatError{0, "not a fat Mach-O file", nil}
43 // NewFatFile creates a new [FatFile] for accessing all the Mach-O images in a
44 // universal binary. The Mach-O binary is expected to start at position 0 in
48 sr := io.NewSectionReader(r, 0, 1<<63-1)
56 // See if this is a Mach-O file via its magic number. The magic
88 // Mach-O images further in the file.
110 if o, k := seenArches[seenArch]; o || k {
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/BinaryFormat/
H A 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
31 macho_object, ///< Mach-O Object file
32 macho_executable, ///< Mach-O Executable
33 macho_fixed_virtual_memory_shared_lib, ///< Mach-O Shared Lib, FVM
34 macho_core, ///< Mach-O Core File
35 macho_preload_executable, ///< Mach-O Preloaded Executable
36 macho_dynamically_linked_shared_lib, ///< Mach-O dynlinked shared lib
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/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
32 macho_object, ///< Mach-O Object file
33 macho_executable, ///< Mach-O Executable
34 macho_fixed_virtual_memory_shared_lib, ///< Mach-O Shared Lib, FVM
35 macho_core, ///< Mach-O Core File
36 macho_preload_executable, ///< Mach-O Preloaded Executable
37 macho_dynamically_linked_shared_lib, ///< Mach-O dynlinked shared lib
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/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
32 macho_object, ///< Mach-O Object file
33 macho_executable, ///< Mach-O Executable
34 macho_fixed_virtual_memory_shared_lib, ///< Mach-O Shared Lib, FVM
35 macho_core, ///< Mach-O Core File
36 macho_preload_executable, ///< Mach-O Preloaded Executable
37 macho_dynamically_linked_shared_lib, ///< Mach-O dynlinked shared lib
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/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
31 macho_object, ///< Mach-O Object file
32 macho_executable, ///< Mach-O Executable
33 macho_fixed_virtual_memory_shared_lib, ///< Mach-O Shared Lib, FVM
34 macho_core, ///< Mach-O Core File
35 macho_preload_executable, ///< Mach-O Preloaded Executable
36 macho_dynamically_linked_shared_lib, ///< Mach-O dynlinked shared lib
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/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
32 macho_object, ///< Mach-O Object file
33 macho_executable, ///< Mach-O Executable
34 macho_fixed_virtual_memory_shared_lib, ///< Mach-O Shared Lib, FVM
35 macho_core, ///< Mach-O Core File
36 macho_preload_executable, ///< Mach-O Preloaded Executable
37 macho_dynamically_linked_shared_lib, ///< Mach-O dynlinked shared lib
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/
H A 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 …]
/aosp_15_r20/external/google-breakpad/src/third_party/mac_headers/
H A DREADME2 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 …]
/aosp_15_r20/external/llvm/tools/llvm-nm/
H A 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 …]
/aosp_15_r20/external/llvm/lib/Object/
H A 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 …]
/aosp_15_r20/external/llvm/lib/MC/
H A 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 …]
/aosp_15_r20/external/google-breakpad/src/client/mac/handler/
H A Ddynamic_images.h34 // is limited to use by 32-bit tasks.
39 #include <mach/mach.h>
40 #include <mach-o/dyld.h>
41 #include <mach-o/loader.h>
98 // Helper functions to deal with 32-bit/64-bit Mach-O differences.
107 // Represents a single dynamically loaded mach-o image
134 // Full path to mach-o binary
157 // filetype from the Mach-O header.
160 // Return true if the task is a 64-bit architecture.
213 return (*const_cast<DynamicImageRef*>(this)->p)
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
H A 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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
H A 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 …]
/aosp_15_r20/external/rust/android-crates-io/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 …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/ppv-lite86-0.2.17/src/
H A 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 …]
/aosp_15_r20/external/llvm/tools/llvm-size/
H A 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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Object/
H A DMachOObjectFile.cpp1 //===- MachOObjectFile.cpp - Mach-O object file binding -------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
71 static T getStruct(const MachOObjectFile &O, const char *P) { in getStruct() argument
73 if (P < O.getData().begin() || P + sizeof(T) > O.getData().end()) in getStruct()
78 if (O.isLittleEndian() != sys::IsLittleEndianHost) in getStruct()
84 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) { in getStructOrErr() argument
86 if (P < O.getData().begin() || P + sizeof(T) > O.getData().end()) in getStructOrErr()
87 return malformedError("Structure read out-of-range"); in getStructOrErr()
[all …]
/aosp_15_r20/external/google-breakpad/src/tools/mac/dump_syms/
H A Ddump_syms_tool.cc1 // -*- mode: c++ -*-
38 #include <mach-o/arch.h>
84 return a->address < b->address; in StackFrameEntryComparator()
87 // Copy the CFI data from |from_module| into |to_module|, for any non-
96 from_module->GetStackFrameEntries(&from_data); in CopyCFIDataBetweenModules()
100 to_module->GetStackFrameEntries(&to_data); in CopyCFIDataBetweenModules()
107 Module::Address from_entry_end = from_entry->address + from_entry->size; in CopyCFIDataBetweenModules()
112 if (from_entry->address > (*to_it)->address) in CopyCFIDataBetweenModules()
119 if (to_it == to_data.end() || (from_entry->address < (*to_it)->address && in CopyCFIDataBetweenModules()
120 from_entry_end < (*to_it)->address)) { in CopyCFIDataBetweenModules()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/MC/
H A DMCSectionMachO.cpp1 //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
22 /// SectionTypeDescriptors - These are strings that describe the various section
65 {StringLiteral("") /* linker-synthesized */,
69 /// SectionAttrDescriptors - This is an array of descriptors for section
181 /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec".
182 /// This is a string that can appear after a .section directive in a mach-o
197 auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef { in ParseSectionSpecifier()
209 "mach-o section specifier requires a segment " in ParseSectionSpecifier()
[all …]
/aosp_15_r20/external/llvm/test/tools/llvm-readobj/
H A 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 …]

12345678910>>...40