/external/llvm-project/llvm/test/tools/obj2yaml/ELF/ |
D | mips-eflags.yaml | 6 # RUN: yaml2obj --docnum=1 %s -o %t-non-flags 7 # RUN: obj2yaml %t-non-flags | FileCheck %s --check-prefix=FLAGS 11 --- !ELF 22 # RUN: yaml2obj --docnum=2 %s -o %t-abi-o32 23 # RUN: obj2yaml %t-abi-o32 | FileCheck %s -DABI=EF_MIPS_ABI_O32 --check-prefix=ABI 24 # RUN: yaml2obj --docnum=3 %s -o %t-abi-o64 25 # RUN: obj2yaml %t-abi-o64 | FileCheck -DABI=EF_MIPS_ABI_O64 %s --check-prefix=ABI 26 # RUN: yaml2obj --docnum=4 %s -o %t-eabi32 27 # RUN: obj2yaml %t-eabi32 | FileCheck -DABI=EF_MIPS_ABI_EABI32 %s --check-prefix=ABI 28 # RUN: yaml2obj --docnum=5 %s -o %t-eabi64 [all …]
|
/external/llvm-project/llvm/docs/ |
D | llvm-objdump.1 | 3 .\" SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 9 .Nm llvm-objdump 12 .Nm llvm-objdump 24 .Pa - 32 .Bl -tag -width indent 33 .It Fl -aarch64-neon-syntax Ns = Ns Ar value 37 .Bl -tag -width indent 41 Apple-style NEON assembly 43 .It Fl -arch Ns = Ns Ar value 44 Choose architecture(s) from a Mach-O file to dump [all …]
|
/external/llvm-project/llvm/test/Object/AMDGPU/ |
D | elf-header-flags-mach.yaml | 1 # RUN: sed -e 's/<BITS>/32/' -e 's/<MACH>/R600_R600/' %s | yaml2obj -o %t.o.R600_R600 2 # RUN: llvm-readobj -S --file-headers %t.o.R600_R600 | FileCheck --check-prefixes=ELF-R600-ALL,ELF-… 3 # RUN: obj2yaml %t.o.R600_R600 | FileCheck --check-prefixes=YAML-R600-ALL,YAML-R600-R600 %s 5 # RUN: sed -e 's/<BITS>/32/' -e 's/<MACH>/R600_R630/' %s | yaml2obj -o %t.o.R600_R630 6 # RUN: llvm-readobj -S --file-headers %t.o.R600_R630 | FileCheck --check-prefixes=ELF-R600-ALL,ELF-… 7 # RUN: obj2yaml %t.o.R600_R630 | FileCheck --check-prefixes=YAML-R600-ALL,YAML-R600-R630 %s 9 # RUN: sed -e 's/<BITS>/32/' -e 's/<MACH>/R600_RS880/' %s | yaml2obj -o %t.o.R600_RS880 10 # RUN: llvm-readobj -S --file-headers %t.o.R600_RS880 | FileCheck --check-prefixes=ELF-R600-ALL,ELF… 11 # RUN: obj2yaml %t.o.R600_RS880 | FileCheck --check-prefixes=YAML-R600-ALL,YAML-R600-RS880 %s 13 # RUN: sed -e 's/<BITS>/32/' -e 's/<MACH>/R600_RV670/' %s | yaml2obj -o %t.o.R600_RV670 [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/ |
D | Magic.h | 1 //===- 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-project/llvm/include/llvm/BinaryFormat/ |
D | Magic.h | 1 //===- 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/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> 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 …]
|
/external/llvm-project/llvm/test/tools/llvm-readobj/MachO/ |
D | file-headers.test | 1 # RUN: yaml2obj %s --docnum=1 -o %t.i386 2 # RUN: llvm-readobj -h %t.i386 \ 3 # RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386 6 # I386-NEXT:Format: Mach-O 32-bit i386 7 # I386-NEXT:Arch: i386 8 # I386-NEXT:AddressSize: 32bit 9 # I386-NEXT:MachHeader { 10 # I386-NEXT: Magic: Magic (0xFEEDFACE) 11 # I386-NEXT: CpuType: X86 (0x7) 12 # I386-NEXT: CpuSubType: CPU_SUBTYPE_I386_ALL (0x3) [all …]
|
/external/llvm-project/llvm/test/ObjectYAML/MachO/ |
D | fat_macho_i386_x86_64.yaml | 1 ## This file contains test cases for generating Fat Mach-O binaries. 3 ## a) Test that yaml2obj emits Fat Mach-O binary and obj2yaml converts it 6 # RUN: yaml2obj --docnum=1 %s | obj2yaml | FileCheck %s 8 --- !fat-mach-o 13 - cputype: 0x00000007 18 - cputype: 0x01000007 24 - FileHeader: 32 - FileHeader: 44 #CHECK: --- !fat-mach-o 49 #CHECK: - cputype: 0x7 [all …]
|
/external/llvm-project/lld/lib/ReaderWriter/MachO/ |
D | MachONormalizedFile.h | 1 //===- lib/ReaderWriter/MachO/MachONormalizedFile.h -----------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 /// mach-o object files. The normalized view is an in-memory only data structure 14 /// The normalized view easily converts to and from YAML using YAML I/O. 16 /// The normalized view converts to and from binary mach-o object files using 24 /// +---------------+ 25 /// | binary mach-o | 26 /// +---------------+ 30 /// +------------+ +------+ [all …]
|
/external/llvm-project/lldb/examples/python/ |
D | mach_o.py | 15 # Mach header "magic" constants 23 # Mach haeder "filetype" constants 36 # Mach haeder "flag" constant bits 63 # Mach load command constants 106 # Mach CPU constants 136 # Values for nlist N_TYPE bits of the "Mach.NList.type" field. 143 # Section indexes for the "Mach.NList.sect_idx" fields 178 vm_prot_names = ['---', 'r--', '-w-', 'rw-', '--x', 'r-x', '-wx', 'rwx'] 183 if hex_bytes_len == -1: 205 padding = num_per_line - ((i / 2) % num_per_line) [all …]
|
/external/llvm-project/llvm/unittests/BinaryFormat/ |
D | MachOTest.cpp | 1 //===- unittest/BinaryFormat/MachOTest.cpp - MachO support tests ----------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 35 ASSERT_EQ(Header->magic, MH_MAGIC); in TEST() 38 Valid32BitMachO + sizeof(mach_header) + Header->sizeofcmds; in TEST() 43 swapStruct(LC->load_command_data); in TEST() 44 ASSERT_EQ(LC->load_command_data.cmd, LC_SEGMENT); in TEST() 45 Current += LC->load_command_data.cmdsize; in TEST() 53 CHECK_CPUTYPE("x86_64-apple-darwin", MachO::CPU_TYPE_X86_64); in TEST() 54 CHECK_CPUTYPE("x86_64h-apple-darwin", MachO::CPU_TYPE_X86_64); in TEST() [all …]
|
/external/llvm-project/llvm/lib/MC/ |
D | MCSectionMachO.cpp | 1 //===- 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 172 /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec". 173 /// This is a string that can appear after a .section directive in a mach-o 188 auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef { in ParseSectionSpecifier() 199 return "mach-o section specifier requires a segment whose length is " in ParseSectionSpecifier() 204 return "mach-o section specifier requires a segment and section " in ParseSectionSpecifier() [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/llvm-project/llvm/test/tools/llvm-objdump/MachO/ |
D | universal-arm64.test | 4 # RUN: yaml2obj %s -o %tarm.o 5 # RUN: llvm-objdump %tarm.o --universal-headers --macho | \ 6 # RUN: FileCheck %s --match-full-lines 9 # CHECK-NEXT: fat_magic FAT_MAGIC 10 # CHECK-NEXT: nfat_arch 3 11 # CHECK-NEXT: architecture arm64 12 # CHECK-NEXT: cputype CPU_TYPE_ARM64 13 # CHECK-NEXT: cpusubtype CPU_SUBTYPE_ARM64_ALL 14 # CHECK-NEXT: capabilities 0x0 15 # CHECK-NEXT: offset 4096 [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCSectionMachO.cpp | 1 //===- 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-project/llvm/test/tools/llvm-lipo/ |
D | thin-executable-universal-binary.test | 2 # UNSUPPORTED: system-windows 3 # RUN: yaml2obj %s -o %t-universal.o 5 # RUN: chmod a-x %t-universal.o 6 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o 7 # RUN: test ! -x %t32.o 9 # RUN: chmod a+x %t-universal.o 10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32-ex.o 11 # RUN: test -x %t32-ex.o 15 --- !fat-mach-o 20 - cputype: 0x00000007 [all …]
|
D | thin-universal-binary.test | 1 # RUN: yaml2obj %s -o %t 3 # RUN: not llvm-lipo %t -thin arm64_32 -output %t.out 2>&1 | FileCheck --check-prefix=ARCH_NOT_IN_F… 6 # RUN: not llvm-lipo %t -thin aarch101 -output %t.out 2>&1 | FileCheck --check-prefix=INVALID_ARCH … 9 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o 10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o 11 # RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-basic32.o 12 # RUN: cmp %t32.o %t-basic32.o 14 --- !fat-mach-o 19 - cputype: 0x00000007 24 - cputype: 0x01000007 [all …]
|
D | archs-universal-binary-x86.test | 1 # RUN: yaml2obj %s -o %t 2 # RUN: llvm-lipo %t -archs | FileCheck %s 5 --- !fat-mach-o 10 - cputype: 0x00000007 15 - cputype: 0x01000007 21 - !mach-o 30 - !mach-o
|
/external/llvm-project/llvm/test/DebugInfo/ |
D | dwarfdump-macho-universal.test | 2 RUN: llvm-dwarfdump -v %S/Inputs/fat-test.o --debug-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/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.cc | 1 // -*- 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-project/llvm/test/tools/llvm-objcopy/MachO/ |
D | universal-object.test | 1 # This test verifies that llvm-objcopy copies a univeral Mach-O object file properly. 3 # RUN: yaml2obj %p/Inputs/i386.yaml -o %t.i386 4 # RUN: yaml2obj %p/Inputs/x86_64.yaml -o %t.x86_64 6 ## Case 1: copy a universal object containing regular Mach-O objects. 7 # RUN: llvm-lipo %t.i386 %t.x86_64 -create -output %t.universal 8 # RUN: llvm-objcopy %t.universal %t.universal.copy 9 # RUN: llvm-lipo %t.universal.copy -archs | FileCheck --check-prefix=VERIFY_ARCHS %s 10 # RUN: llvm-lipo %t.universal.copy -thin i386 -output %t.i386.copy 11 # RUN: llvm-lipo %t.universal.copy -thin x86_64 -output %t.x86_64.copy 16 # RUN: rm -f %t.archive.i386 [all …]
|