| /llvm-project-15.0.7/llvm/utils/ |
| H A D | check-each-file | 7 if [ x$1 = x--make-linker-script ] 10 linker=./link-$program 17 gmake -n $program >> $linker 18 chmod 755 $linker 20 output=`./$linker 2>&1` 29 ./$linker > /dev/null 2>&1 48 linker="$3" 90 if [ -z "$linker" ] 95 if [ ! -x "$linker" ] 120 $linker [all …]
|
| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | force-load-swift-libs.ll | 6 ; RUN: llvm-as %t/lc-linker-opt.ll -o %t/lc-linker-opt.o 7 ; RUN: llvm-as %t/no-lc-linker-opt.ll -o %t/no-lc-linker-opt.o 9 ; RUN: %lld -lSystem -force_load_swift_libs -L%t %t/lc-linker-opt.o -o \ 10 ; RUN: %t/lc-linker-opt -why_load 2>&1 | FileCheck %s --check-prefix=WHY-LOAD 13 ; RUN: %lld -lSystem -L%t %t/lc-linker-opt.o -o %t/lc-linker-opt-no-force 17 …: %lld -lSystem -force_load_swift_libs -lswiftFoo -L%t %t/no-lc-linker-opt.o -o %t/no-lc-linker-opt 22 …d -lSystem -force_load_swift_libs -lswiftFoo -L%t %t/lc-linker-opt.o -o %t/both-cli-and-lc-linker-… 24 …: %lld -lSystem -force_load_swift_libs -L%t %t/lc-linker-opt.o -lswiftFoo -o %t/both-cli-and-lc-li… 31 ;--- lc-linker-opt.ll 36 !llvm.linker.options = !{!0} [all …]
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | LinkTimeOptimization.rst | 14 interface and design between the LTO optimizer and the linker. 23 achieved through tight integration with the linker. In this model, the linker 38 invokes system linker. 104 * And this in turn, enables linker to remove ``foo4()``. 107 linker. Here, the optimizer can not remove ``foo3()`` without the linker's 132 done by this separate tool and the linker itself. 134 Multi-phase communication between ``libLTO`` and linker 159 This information is added to the linker's global symbol table. 173 linker collects the list of live symbols. 210 their object files and the standard linker tool. [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/ |
| H A D | linker-options.yaml | 8 # VALID: - Name: .linker-options-valid1 13 # VALID-NEXT: - Name: .linker-options-valid2 27 - Name: .linker-options-valid1 30 - Name: .linker-options-valid2 39 # CORRUPT: - Name: .linker-options-empty 42 # CORRUPT-NEXT: - Name: .linker-options-no-null 45 # CORRUPT-NEXT: - Name: .linker-options-incomplete 56 - Name: .linker-options-empty 60 - Name: .linker-options-no-null 65 - Name: .linker-options-incomplete
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | ClangLinkerWrapper.rst | 8 .. _clang-linker-wrapper: 15 register them. It works by first scanning the linker's input for embedded device 26 only for the linker wrapper will be forwarded to the wrapped linker job. 30 USAGE: clang-linker-wrapper [options] -- <options to passed to the linker> 37 --device-linker=<value> or <triple>=<value> 38 Arguments to pass to the device linker invocation 44 --linker-path=<path> The linker executable to invoke 61 -- The separator for the wrapped linker arguments 74 clang-linker-wrapper --host-triple=x86_64 --linker-path=/usr/bin/ld -- <Args>
|
| /llvm-project-15.0.7/compiler-rt/lib/lsan/ |
| H A D | lsan_common_linux.cpp | 32 static LoadedModule *linker = nullptr; variable 59 if (linker == nullptr) { in InitializePlatformSpecificModules() 60 linker = reinterpret_cast<LoadedModule *>(linker_placeholder); in InitializePlatformSpecificModules() 61 *linker = module; in InitializePlatformSpecificModules() 67 linker->clear(); in InitializePlatformSpecificModules() 68 linker = nullptr; in InitializePlatformSpecificModules() 72 if (linker == nullptr) { in InitializePlatformSpecificModules() 107 LoadedModule *GetLinker() { return linker; } in GetLinker()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | linker-options.test | 1 ## Check that we can use the --elf-linker-options option 5 # RUN: llvm-readobj --elf-linker-options %t1 2>&1 | FileCheck %s -DFILE=%t1 23 - Name: .linker-options.valid1 32 - Name: .linker-options.incomplete 39 - Name: .linker-options.empty 44 - Name: .linker-options.nonul 49 - Name: .linker-options.broken.content 56 - Name: .linker-options.valid2 62 ## llvm-readelf doesn't support --elf-linker-options yet. 63 # RUN: llvm-readelf --elf-linker-options %t1 2>&1 | FileCheck %s --check-prefix=READELF
|
| /llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/ |
| H A D | linker-options.yaml | 10 # OPTIONS: Name: .linker-options1 22 # OPTIONS: Name: .linker-options2 28 # OPTIONS: Name: .linker-options3 34 # OPTIONS: String dump of section '.linker-options1': 46 - Name: .linker-options1 53 - Name: .linker-options2 56 - Name: .linker-options3 74 - Name: .linker-options 85 - Name: .linker-options 106 - Name: .linker-options [all …]
|
| /llvm-project-15.0.7/clang/tools/clang-linker-wrapper/ |
| H A D | LinkerWrapperOpts.td | 12 // Flags for the linker wrapper. 13 def linker_path_EQ : Joined<["--"], "linker-path=">, 15 HelpText<"The linker executable to invoke">; 28 def device_linker_args_EQ : Joined<["--"], "device-linker=">, 30 HelpText<"Arguments to pass to the device linker invocation">; 62 // Flags passed to the device linker. 72 def linker_arg_EQ : Joined<["--"], "linker-arg=">, 74 HelpText<"An extra argument to be passed to the linker">; 76 // Separator between the linker wrapper and host linker flags. 78 HelpText<"The separator for the wrapped linker arguments">; [all …]
|
| H A D | CMakeLists.txt | 28 add_clang_executable(clang-linker-wrapper 40 add_dependencies(clang clang-linker-wrapper) 42 target_link_libraries(clang-linker-wrapper 47 install(TARGETS clang-linker-wrapper RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | dynamic-linker.s | 4 # RUN: ld.lld --dynamic-linker foo %t.o -o %t 7 # RUN: ld.lld --dynamic-linker=foo %t.o -o %t 15 # RUN: ld.lld --dynamic-linker foo --no-dynamic-linker %t.o -o %t 18 ## {clang,gcc} -nostdlib -r passes --dynamic-linker, and the expected behavior is to ignore it. 19 # RUN: ld.lld -r --dynamic-linker foo %t.o -o %t
|
| /llvm-project-15.0.7/lld/docs/ |
| H A D | index.rst | 4 LLD is a linker from the LLVM project that is a drop-in replacement 8 The linker supports ELF (Unix), PE/COFF (Windows), Mach-O (macOS) and 19 same command line arguments and linker scripts as GNU. 23 gold linker. Your mileage may vary, though. 30 - It is always a cross-linker, meaning that it always supports all the 33 easy to use our linker as part of a cross-compile toolchain. 38 external linker and then call the linker's main function, 110 instead of the default linker. 132 - May 2015: We decided to rewrite the COFF linker and did that. 133 Noticed that the new linker is much faster than the MSVC linker. [all …]
|
| H A D | NewLLD.rst | 7 You can embed LLD to your program by linking against it and calling the linker's 15 work, or otherwise it's a linker's bug. 26 There are many design choices you have to make to create a complete linker. 48 Since we are trying to create a high-performance linker, 71 - If the linker visits an object file, the linker links object files to the 134 it would slow down the linker by 10%. So, don't do that. 144 functions, the code of the linker should look obvious to you. 150 The linker creates linker-defined symbols as well. 156 absolute symbols, linker-created symbols, etc. 212 There are mainly three actors in this linker. [all …]
|
| H A D | WebAssembly.rst | 23 common linker flags with **ld.lld** but also includes several 42 Note that this will not export linker-generated mutable globals unless 68 linker to shrink the code section to remove any padding from the final 85 Report all unresolved symbols. This is the default. Normally the linker 92 this is trivial. For direct function calls, the linker will generate a 135 In general, where possible, the WebAssembly linker attempts to emulate the 136 behaviour of a traditional ELF linker, and in particular the ELF port of lld. 171 In addition, symbols can be exported via the linker command line using 175 Finally, just like with native ELF linker the ``--export-dynamic`` flag can be 193 Since WebAssembly is designed with size in mind the linker defaults to [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Windows/ |
| H A D | tls_init.cpp | 42 #pragma comment(linker, "/INCLUDE:_tls_used") 43 #pragma comment(linker, "/INCLUDE:p_thread_callback") 45 #pragma comment(linker, "/INCLUDE:__tls_used") 46 #pragma comment(linker, "/INCLUDE:_p_thread_callback")
|
| /llvm-project-15.0.7/llvm/test/Bindings/OCaml/ |
| H A D | linker.ml | 1 (* RUN: rm -rf %t && mkdir -p %t && cp %s %t/linker.ml 2 * RUN: %ocamlc -g -w +A -package llvm.linker -linkpkg %t/linker.ml -o %t/executable 4 * RUN: %ocamlopt -g -w +A -package llvm.linker -linkpkg %t/linker.ml -o %t/executable 65 suite "linker" test_linker
|
| /llvm-project-15.0.7/llvm/test/Bitcode/ |
| H A D | upgrade-linker-options-2.ll | 1 ;; Test upgrade linker option doesn't create duplicated linker options. 11 ; RUN: llvm-dis %S/Inputs/linker-options.bc -o - | FileCheck %s 12 ; CHECK: !llvm.linker.options = !{!2}
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | lto-linker-opts.ll | 2 ; RUN: llvm-as -o %T/lto-linker-opts.obj %s 3 ; RUN: env LIB=%S/Inputs lld-link /out:%T/lto-linker-opts.exe /entry:main /subsystem:console %T/lto… 8 !llvm.linker.options = !{!0}
|
| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | use-exportas-for-link.m | 4 // CHECK_A: !llvm.linker.options = !{![[MODULE:[0-9]+]]} 12 // CHECK_B: !llvm.linker.options = !{![[MODULE:[0-9]+]]} 20 // CHECK_C: !llvm.linker.options = !{![[MODULE:[0-9]+]]} 27 // CHECK_D: !llvm.linker.options = !{![[MODULE:[0-9]+]]} 34 // CHECK_E: !llvm.linker.options = !{![[MODULE:[0-9]+]]} 41 // CHECK_F: !llvm.linker.options = !{![[MODULE:[0-9]+]]}
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformWindows.c | 16 #pragma comment(linker, "/MERGE:.lprfc=.data") 17 #pragma comment(linker, "/MERGE:.lprfd=.data") 18 #pragma comment(linker, "/MERGE:.lprfv=.data") 19 #pragma comment(linker, "/MERGE:.lprfnd=.data")
|
| /llvm-project-15.0.7/clang/test/Preprocessor/ |
| H A D | pragma-comment-elf.c | 12 #pragma comment(linker) // expected-warning {{'#pragma comment linker' ignored}} 13 #pragma comment(linker,"foo") // expected-warning {{'#pragma comment linker' ignored}} 14 __pragma(comment(linker, " bar=" "2")) // expected-warning {{'#pragma comment linker' ignored}}
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_win_defs.h | 69 __pragma(comment(linker, "/alternatename:" WIN_SYM_PREFIX STRINGIFY(Name) "="\ 73 __pragma(comment(linker, "/include:" WIN_SYM_PREFIX STRINGIFY(Name))) 76 __pragma(comment(linker, "/export:" WIN_EXPORT_PREFIX STRINGIFY(ExportedName)\
|
| /llvm-project-15.0.7/lld/test/ELF/linkerscript/ |
| H A D | defsym.s | 5 ## This testcase checks that we apply -defsym and linker script 8 ## Check that linker script can override -defsym assignments. 14 ## Check that -defsym can override linker script. Check that multiple
|
| H A D | linker-script-in-search-path.s | 2 # Check that we fall back to search paths if a linker script was not found 12 # If the linker script specified with -T is missing we should emit an error 14 # ERROR: error: cannot find linker script {{.*}}script
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | pragma-comment.c | 16 #pragma comment(linker," /bar=" BAR) 17 #pragma comment(linker," /foo=\"foo bar\"")
|