/external/llvm-project/lld/test/ELF/ |
D | undefined-opt.s | 2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ 4 # RUN: %p/Inputs/abs.s -o %tabs.o 5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ 6 # RUN: %p/Inputs/shared.s -o %tshared.o 7 # RUN: rm -f %tar.a 8 # RUN: llvm-ar rcs %tar.a %tabs.o %tshared.o 10 # Symbols from the archive are not in if not needed 11 # RUN: ld.lld -o %t1 %t.o %tar.a 12 # RUN: llvm-readobj --symbols %t1 | FileCheck --check-prefix=NO-UNDEFINED %s [all …]
|
D | unresolved-symbols.s | 2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/unresolved-symbols.s -o %t2.o 4 # RUN: ld.lld -shared %t2.o -o %t.so 6 ## Check that %t2.o contains undefined symbol undef. 7 # RUN: not ld.lld %t1.o %t2.o -o /dev/null 2>&1 | \ 8 # RUN: FileCheck -check-prefix=UNDCHECK %s 9 # UNDCHECK: error: undefined symbol: undef 13 # RUN: not ld.lld %t1.o %t2.o -o /dev/null --unresolved-symbols=xxx 2>&1 | \ 14 # RUN: FileCheck -check-prefix=ERR1 %s 15 # ERR1: unknown --unresolved-symbols value: xxx [all …]
|
D | warn-unresolved-symbols.s | 2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o 5 # RUN: not ld.lld %t1.o -o /dev/null 2>&1 | \ 6 # RUN: FileCheck -check-prefix=ERRUND %s 8 ## --error-unresolved-symbols should generate an error 9 # RUN: not ld.lld %t1.o -o /dev/null --error-unresolved-symbols 2>&1 | \ 10 # RUN: FileCheck -check-prefix=ERRUND %s 12 ## --warn-unresolved-symbols should generate a warning 13 # RUN: ld.lld %t1.o -o %t5 --warn-unresolved-symbols 2>&1 | \ 14 # RUN: FileCheck -check-prefix=WARNUND %s 17 # RUN: ld.lld %t1.o -o %t5 --error-unresolved-symbols --warn-unresolved-symbols 2>&1 | \ [all …]
|
D | libsearch.s | 2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 3 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ 4 // RUN: %p/Inputs/libsearch-dyn.s -o %tdyn.o 5 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ 6 // RUN: %p/Inputs/libsearch-st.s -o %tst.o 7 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ 8 // RUN: %p/Inputs/use-bar.s -o %tbar.o 9 // RUN: mkdir -p %t.dir 10 // RUN: ld.lld -shared %tdyn.o -o %t.dir/libls.so 11 // RUN: cp -f %t.dir/libls.so %t.dir/libls2.so [all …]
|
D | undefined-glob.s | 4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t1.o 6 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t2.o 8 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t3.o 10 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t4.o 11 # RUN: rm -f %t.a 12 # RUN: llvm-ar rcs %t.a %t1.o %t2.o %t3.o %t4.o 14 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 16 # RUN: ld.lld -o %t.exe %t.o %t.a 17 # RUN: llvm-nm %t.exe | FileCheck --check-prefix=NO-OPT %s 19 # NO-OPT-NOT: foo [all …]
|
D | symbol-ordering-file-warnings.s | 2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symbol-ordering-file-warnings1.s -o … 4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symbol-ordering-file-warnings2.s -o … 5 # RUN: ld.lld -shared %t2.o -o %t.so 8 # RUN: echo "missing" > %t-order-missing.txt 9 # RUN: ld.lld %t1.o -o %t --symbol-ordering-file %t-order-missing.txt \ 10 # RUN: --unresolved-symbols=ignore-all 2>&1 | FileCheck %s --check-prefixes=WARN,MISSING 13 # RUN: ld.lld %t1.o -o %t --symbol-ordering-file %t-order-missing.txt \ 14 # RUN: --unresolved-symbols=ignore-all --no-warn-symbol-ordering 2>&1 | \ 15 # RUN: FileCheck %s --check-prefixes=WARN --allow-empty [all …]
|
/external/llvm-project/lld/docs/ |
D | WebAssembly.rst | 11 ------------------ 17 ``wasm32-unknown-unknown`` target. 20 ----- 22 The WebAssembly version of lld is installed as **wasm-ld**. It shared many 24 WebAssembly-specific options: 26 .. option:: --no-entry 30 .. option:: --export-table 34 .. option:: --import-table 38 .. option:: --export-all 40 Export all symbols (normally combined with --no-gc-sections) [all …]
|
D | NewLLD.rst | 5 --------------------------- 23 ------------ 29 We believe that these high-level design choices achieved a right balance 39 to abstract the differences wouldn't be worth its complexity and run-time 47 Therefore, the high-level design matters more than local optimizations. 48 Since we are trying to create a high-performance linker, 66 The traditional Unix linker maintains a set of undefined symbols during 71 - If the linker visits an object file, the linker links object files to the 72 result, and undefined symbols in the object file are added to the set. 74 - If the linker visits an archive file, it checks for the archive file's [all …]
|
D | ld.lld.1 | 3 .\" SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 25 is a drop-in replacement for the GNU BFD and gold linkers. 30 currently supports i386, x86-64, ARM, AArch64, PowerPC32, PowerPC64, 31 MIPS32, MIPS64, RISC-V, AMDGPU, Hexagon and SPARC V9 targets. 33 acts as a Microsoft link.exe-compatible linker if invoked as 34 .Nm lld-link 43 Many options have both a single-letter and long form. 54 .Bl -tag -width indent 55 .It Fl -allow-multiple-definition 58 .It Fl -allow-shlib-undefined [all …]
|
/external/llvm-project/lld/ELF/ |
D | Symbols.h | 1 //===- Symbols.h ------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This file defines various types of Symbols. 11 //===----------------------------------------------------------------------===// 41 class Undefined; variable 43 // This is a StringRef-like container that doesn't run strlen(). 45 // ELF string tables contain a lot of null-terminated strings. Most of them 46 // are not necessary for the linker because they are names of local symbols, 50 StringRefZ(const char *s) : data(s), size(-1) {} in StringRefZ() [all …]
|
D | Symbols.cpp | 1 //===- Symbols.cpp --------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 #include "Symbols.h" 31 if (elf::config->demangle) in demangle() 79 isec = isec->repl; in getSymVA() 85 // symbols). in getSymVA() 90 // VA in a non-linear way. in getSymVA() 109 uint64_t va = isec->getVA(offset); in getSymVA() 113 // symbols has the `STO_MIPS_MICROMIPS` flag in the `st_other` in getSymVA() [all …]
|
D | SymbolTable.h | 1 //===- SymbolTable.h --------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 13 #include "Symbols.h" 22 // SymbolTable is a bucket of all known symbols, including defined, 23 // undefined, or lazy symbols (the last one is symbols in archive 26 // We put all symbols of all files to a SymbolTable, and the 27 // SymbolTable selects the "best" symbols if there are name 29 // an undefined symbol. Or, if there's a conflict between a lazy and a 30 // undefined, it'll read an archive member to read a real definition [all …]
|
D | Options.td | 7 class FF<string name> : Flag<["--"], name>; 8 class JJ<string name>: Joined<["--"], name>; 11 def NAME: Separate<["--"], name>; 12 def NAME # _eq: Joined<["--"], name # "=">, Alias<!cast<Separate>(NAME)>, 17 def NAME: Flag<["--"], name>, HelpText<help1>; 18 def no_ # NAME: Flag<["--"], "no-" # name>, HelpText<help2>; 23 class F<string name>: Flag<["--", "-"], name>; 24 class J<string name>: Joined<["--", "-"], name>; 27 def NAME: Separate<["--", "-"], name>; 28 def NAME # _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>, [all …]
|
/external/llvm-project/llvm/unittests/InterfaceStub/ |
D | ELFYAMLTest.cpp | 1 //===- llvm/unittests/TextAPI/YAMLTest.cpp --------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===-----------------------------------------------------------------------===/ 37 const char Data[] = "--- !tapi-tbe\n" in TEST() 41 "Symbols:\n" in TEST() 42 " foo: { Type: Func, Undefined: true }\n" in TEST() 48 EXPECT_FALSE(Stub->SoName.hasValue()); in TEST() 49 EXPECT_EQ(Stub->Arch, (uint16_t)llvm::ELF::EM_X86_64); in TEST() 50 EXPECT_EQ(Stub->NeededLibs.size(), 3u); in TEST() 51 EXPECT_STREQ(Stub->NeededLibs[0].c_str(), "libc.so"); in TEST() [all …]
|
/external/llvm-project/lld/COFF/ |
D | SymbolTable.h | 1 //===- SymbolTable.h --------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 36 // SymbolTable is a bucket of all known symbols, including defined, 37 // undefined, or lazy symbols (the last one is symbols in archive 40 // We put all symbols of all files to a SymbolTable, and the 41 // SymbolTable selects the "best" symbols if there are name 43 // an undefined symbol. Or, if there's a conflict between a lazy and a 44 // undefined, it'll read an archive member to read a real definition 52 // Emit errors for symbols that cannot be resolved. [all …]
|
D | Symbols.h | 1 //===- Symbols.h ------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 49 // symbols as those are the most prevalent and the zero tag is the cheapest 74 // Non-external symbol names are never used by the linker except for logging in getName() 77 // name. Object files contain lots of non-external symbols, and creating in getName() 117 // symbols from being written to the symbol table more than once. 120 // True if this symbol was referenced by a regular (non-bitcode) object. 123 // True if we've seen both a lazy and an undefined symbol with this symbol 133 // True if we want to allow this symbol to be undefined in the early [all …]
|
/external/llvm-project/lld/wasm/ |
D | Options.td | 5 class F<string name>: Flag<["--", "-"], name>; 6 class J<string name>: Joined<["--", "-"], name>; 7 class S<string name>: Separate<["--", "-"], name>; 10 def NAME: Separate<["--", "-"], name>; 11 def NAME # _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>, 16 def NAME: Flag<["--", "-"], name>, HelpText<help1>; 17 def no_ # NAME: Flag<["--", "-"], "no-" # name>, HelpText<help2>; 21 def NAME: Flag<["--"], name>, HelpText<help1>; 22 def no_ # NAME: Flag<["--"], "no-" # name>, HelpText<help2>; 26 def Bsymbolic: F<"Bsymbolic">, HelpText<"Bind defined symbols locally">; [all …]
|
/external/google-breakpad/src/third_party/mac_headers/mach-o/ |
D | nlist.h | 2 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 27 /*- 69 * Format of a symbol table entry of a Mach-O file for 32-bit architectures. 72 * N_SECT type. These modifications are required to support symbols in a larger 79 char *n_name; /* for use when in-core */ 85 int16_t n_desc; /* see <mach-o/stab.h> */ 90 * This is the symbol table entry structure for 64-bit architectures. 98 uint16_t n_desc; /* see <mach-o/stab.h> */ 103 * Symbols with a index into the string table of zero (n_un.n_strx == 0) are [all …]
|
/external/llvm-project/llvm/docs/CommandGuide/ |
D | llvm-nm.rst | 1 llvm-nm - list LLVM bitcode and object file's symbol table 4 .. program:: llvm-nm 7 -------- 9 :program:`llvm-nm` [*options*] [*filenames...*] 12 ----------- 14 The :program:`llvm-nm` utility lists the names of symbols from LLVM bitcode 17 as the input. If *-* is used as a filename, :program:`llvm-nm` will read a file 20 :program:`llvm-nm`'s default output format is the traditional BSD :program:`nm` 21 output format. Each such output record consists of an (optional) 8-digit 27 upper-case characters are listed for the same meaning, a lower-case character [all …]
|
/external/tensorflow/tensorflow/python/autograph/operators/ |
D | variables.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 24 if isinstance(v, Undefined): 30 """Load variable operator that returns Undefined when failing to evaluate. 32 Note: the name ("load or return undefined") is abbreviated to minimize 35 This variant of `ld` is useful when loading symbols that may be undefined at 36 runtime, such as composite symbols, and whether they are defined or not cannot 37 be determined statically. For example `d['a']` is undefined when `d` is an 42 name: Human-readable name of the symbol being read. 44 Either the value of the symbol, or Undefined, if the symbol is not fully 51 return Undefined(name) [all …]
|
/external/llvm-project/lld/test/wasm/ |
D | unresolved-symbols.s | 1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t1.o 3 ## Check that %t1.o contains undefined symbol undef. 4 # RUN: not wasm-ld %t1.o -o /dev/null 2>&1 | \ 5 # RUN: FileCheck -check-prefix=ERRUND %s 6 # ERRUND: error: {{.*}}1.o: undefined symbol: undef 8 ## report-all is the default one. Check that we get the same error 9 # RUN: not wasm-ld %t1.o -o /dev/null --unresolved-symbols=report-all 2>&1 | \ 10 # RUN: FileCheck -check-prefix=ERRUND %s 13 # RUN: not wasm-ld %t1.o -o /dev/null --unresolved-symbols=xxx 2>&1 | \ 14 # RUN: FileCheck -check-prefix=ERR1 %s [all …]
|
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
D | dyn-symbols.test | 1 ## In this test we test that dynamic symbols are dumped as expected. 4 # RUN: yaml2obj --docnum=1 %s -o %t1.so 5 # RUN: llvm-readobj --dyn-symbols %t1.so 2>&1 \ 6 # RUN: | FileCheck %s --implicit-check-not="warning:" --check-prefix=DYNSYMS-LLVM 7 # RUN: llvm-readelf --dyn-symbols %t1.so 2>&1 \ 8 # RUN: | FileCheck %s --implicit-check-not="warning:" --check-prefix=DYNSYMS-GNU 10 # DYNSYMS-LLVM: DynamicSymbols [ 11 # DYNSYMS-LLVM-NEXT: Symbol { 12 # DYNSYMS-LLVM-NEXT: Name: (0) 13 # DYNSYMS-LLVM-NEXT: Value: 0x0 [all …]
|
D | symbols.test | 1 ## This is a general test for --symbols option and its aliases. 2 ## There are also other symbols* tests that check specific things. 6 ## They might never have dynamic symbols normally, for example, though we still want 7 ## to document the --dyn-symbols behavior. 11 ## Case 1: Test how llvm-readobj and llvm-readelf dumps symbols. 13 # RUN: yaml2obj %s -DBITS=64 -DTYPE=ET_REL -o %t64 14 # RUN: llvm-readobj --symbols %t64 | FileCheck %s --match-full-lines --strict-whitespace --check-pr… 15 # RUN: llvm-readelf --symbols %t64 | FileCheck %s --match-full-lines --strict-whitespace --check-pr… 16 # RUN: yaml2obj %s -DBITS=32 -DTYPE=ET_REL -o %t32 17 # RUN: llvm-readobj --symbols %t32 | FileCheck %s --match-full-lines --strict-whitespace --check-pr… [all …]
|
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/ |
D | keep-file-symbols.test | 1 # RUN: yaml2obj %s -o %t 2 # RUN: llvm-objcopy --strip-all --keep-file-symbols %t %t2 3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefix=STRIPALL 4 # RUN: llvm-objcopy --keep-file-symbols --strip-symbol foo %t %t2 5 # RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefix=STRIP 7 # RUN: llvm-strip --keep-file-symbols %t -o %t3 8 # RUN: llvm-readobj --symbols %t3 | FileCheck %s --check-prefix=STRIPALL 9 # RUN: llvm-strip --keep-file-symbols --strip-symbol foo %t -o %t4 10 # RUN: llvm-readobj --symbols %t4 | FileCheck %s --check-prefix=STRIP 12 # RUN: llvm-objcopy --keep-file-symbols --strip-debug %t %t5 [all …]
|
/external/llvm-project/llvm/test/tools/llvm-readobj/wasm/ |
D | wasm-imports.test | 1 # RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s 3 # Test symbols with custom import module and name attributes. 5 --- !WASM 9 - Type: TYPE 11 - Index: 0 14 - I32 15 - Index: 1 18 - Type: IMPORT 20 - Module: env 25 - Module: env [all …]
|