Home
last modified time | relevance | path

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

12345678910>>...25

/llvm-project/llvm/test/tools/obj2yaml/ELF/
H A Dmips-eflags.yaml6 # 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 …]
/llvm-project/llvm/test/Object/AMDGPU/
H A Delf-header-flags-mach.yaml1 # RUN: sed -e 's/<BITS>/32/' -e 's/<MACH>/R600_R600/' %s | yaml2obj -o %t.o.R600_R600
2 # RUN: llvm-readobj -S --fil
[all...]
/llvm-project/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
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 …]
/llvm-project/llvm/test/tools/llvm-readobj/MachO/
H A Dfile-headers.test1 # 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 …]
H A Duniversal-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 \
9 RUN: -DARFILE="%p/Inputs/macho-universal-archive.x86_64.i386"
11 RUN: llvm-readobj --sections %p/Inputs/macho-universal-archive.x86_64.i386 \
12 RUN: | FileCheck %s -check-prefix MULTISECTIONS-ARCHIVE \
13 RUN: -DARFILE="%p/Inputs/macho-universal-archive.x86_64.i386"
[all …]
/llvm-project/lldb/examples/python/
H A Dmach_o.py14 # Mach header "magic" constants
22 # Mach haeder "filetype" constants
35 # Mach haeder "flag" constant bits
62 # Mach load command constants
105 # Mach CPU constants
135 # Values for nlist N_TYPE bits of the "Mach.NList.type" field.
142 # Section indexes for the "Mach.NList.sect_idx" fields
177 vm_prot_names = ["---", "r--", "-w-", "rw-", "--x", "r-x", "-wx", "rwx"]
182 if hex_bytes_len == -1:
204 padding = num_per_line - ((i / 2) % num_per_line)
[all …]
/llvm-project/llvm/test/ObjectYAML/MachO/
H A Dfat_macho_i386_x86_64.yaml1 ## 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 …]
H A Dsection_data.yaml1 ## Show that yaml2obj supports custom section data for Mach-O YAML inputs.
4 # RUN: not yaml2obj --docnum=1 %s -o %t1 2>&1 | FileCheck %s --check-prefi
[all...]
/llvm-project/llvm/tools/llvm-objdump/
H A DObjdumpOpts.td4 def NAME: Flag<["--"], name>, HelpText<help1>;
5 def no_ # NAME: Flag<["--"], "no-" # name>, HelpText<help2>;
9 def NAME : Separate<["--"], name>;
10 def NAME #_eq : Joined<["--"], name #"=">,
15 def help : Flag<["--"], "help">,
16 HelpText<"Display available options (--help-hidden for more)">;
18 def help_hidden : Flag<["--"], "help-hidden">,
22 def version : Flag<["--"], "version">,
24 def : Flag<["-"], "v">, Alias<version>, HelpText<"Alias for --version">;
26 def adjust_vma_EQ : Joined<["--"], "adjust-vma=">,
[all …]
/llvm-project/llvm/unittests/BinaryFormat/
H A DMachOTest.cpp1 //===- unittest/BinaryFormat/MachOTest.cpp - MachO support tests --------
[all...]
/llvm-project/llvm/test/DebugInfo/
H A Ddwarfdump-macho-universal.test2 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}}
/llvm-project/llvm/test/tools/llvm-lipo/
H A Dthin-executable-universal-binary.test2 # 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 …]
H A Dthin-universal-binary.test1 # 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 …]
H A Darchs-universal-binary-arm.test1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-lipo %t -archs | FileCheck %s
5 --- !fat-mach-o
10 - cputype: 0x0000000C
15 - cputype: 0x0100000C
21 - !mach-o
30 - !mach-o
H A Darchs-universal-binary-x86.test1 # 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
H A Darchs-universal-binary-unknown.test1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-lipo %t -archs 2>&1 | FileCheck %s
6 --- !fat-mach-o
11 - cputype: 0x00000007
16 - cputype: 0x01000097
22 - !mach-o
31 - !mach-o
H A Dverify-arch-universal-binary.test1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-lipo %t -verify_arch i386
4 # RUN: llvm-lipo %t -verify_arch i386 x86_64
6 # RUN: not llvm-lipo %t -verify_arch aarch64
7 # RUN: not llvm-lipo %t -verify_arch arm64
8 # RUN: yaml2obj %s | not llvm-lipo - -verify_arch aarch64 i386
9 # lipo does not support this (i.e. yaml2obj %s | not lipo -), included to test function with llvm-l…
12 --- !fat-mach-o
17 - cputype: 0x00000007
22 - cputype: 0x01000007
[all …]
/llvm-project/lldb/test/API/macosx/unregistered-macho/
H A DTestUnregisteredMacho.py1 """Test that debugserver will parse a mach-o in inferior memory even if it's not loaded."""
35 # to debugserver, asking it to parse the mach-o binary
42 substrs=['"pathname":""', '"uuid":"1B4E28BA-2FA1-11D2-883F-B9A761BDE3FB"'],
52 # formatted Mach-O binary in memory, but do not get an
53 # entry for the invalid Mach-O address.
/llvm-project/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
176 /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec".
177 /// This is a string that can appear after a .section directive in a mach-o
192 auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef { in ParseSectionSpecifier()
204 "mach-o section specifier requires a segment " in ParseSectionSpecifier()
[all …]
/llvm-project/llvm/test/tools/llvm-objdump/MachO/
H A Duniversal-arm64.test4 # RUN: yaml2obj %s -o %tarm.o
5 # RUN: llvm-objdump %tarm.o --universal-headers --macho | \
6 # RUN: FileCheck %s --match-full-lines
7 # RUN: llvm-otool -fv %tarm.o | FileCheck %s --match-full-lines
8 # RUN: llvm-objdump %tarm.o --universal-headers --macho --non-verbose | \
9 # RUN: FileCheck %s --match-full-lines --check-prefix=NONVERBOSE
10 # RUN: llvm-otool -f %tarm.o | FileCheck %s --match-full-lines --check-prefix=NONVERBOSE
13 # CHECK-NEXT: fat_magic FAT_MAGIC
14 # CHECK-NEXT: nfat_arch 3
15 # CHECK-NEXT: architecture arm64
[all …]
/llvm-project/llvm/test/tools/llvm-objcopy/MachO/
H A Duniversal-object.test1 # 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 …]
/llvm-project/lldb/test/API/commands/target/basic/
H A Dbogus.yaml1 --- !fat-mach-o
6 - cputype: 0x0000000C
11 - cputype: 0x0000000C
16 - cputype: 0x0100000C
22 - !mach-o
33 - cmd: LC_SEGMENT
44 - cmd: LC_SYMTAB
50 - cmd: LC_VERSION_MIN_IPHONEOS
54 - cmd: LC_DATA_IN_CODE
60 - n_strx: 4
[all …]
/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/
H A Darchive.test1 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \
3 CHECK: libfat-test.a(x86_64)(fat-test.o): file format Mach-O 64-bit x86-64
5 CHECK: libfat-test.a(i386)(fat-test.o): file format Mach-O 32-bit i386
8 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \
9 RUN: --arch=i386 | FileCheck %s --check-prefix=I386
10 I386-NOT: 64-bit
11 I386: file format Mach-O 32-bit i386
12 I386-NOT: 64-bit
14 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \
15 RUN: --arch=i386 --arch=x86_64 | FileCheck %s
[all …]
/llvm-project/llvm/docs/CommandGuide/
H A Dllvm-otool.rst1 llvm-otool - Mach-O dumping tool
4 .. program:: llvm-otool
7 --------
9 :program:`llvm-otool` [*option...*] *[file...]*
12 -----------
14 :program:`llvm-otool` is a tool for dumping Mach-O files.
16 It attempts to be command-line-compatible and output-compatible with macOS's
20 -------
22 .. option:: -arch <value>
24 Select slice of universal Mach-O file.
[all …]
/llvm-project/llvm/test/tools/llvm-lipo/Inputs/
H A Di386-x86_64-armv7-arm64-universal.yaml1 --- !fat-mach-o
6 - cputype: 0x00000007
11 - cputype: 0x01000007
16 - cputype: 0x0000000C
21 - cputype: 0x0100000C
27 - !mach-o
37 - cmd: LC_SEGMENT
49 - sectname: __text
61 - sectname: __eh_frame
73 - cmd: LC_VERSION_MIN_MACOSX
[all …]

12345678910>>...25