| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | x86-64-reloc-unsigned.s | 6 # RUN: %lld -pie -o %t-pie %t.o 7 # RUN: llvm-objdump --macho --rebase %t-pie | FileCheck %s --check-prefix=PIE 8 # RUN: %lld -pie -no_pie -o %t-no-pie %t.o 9 # RUN: llvm-objdump --macho --rebase %t-no-pie | FileCheck %s --check-prefix=NO-PIE 10 # RUN: %lld -no_pie -pie -o %t-pie %t.o 11 # RUN: llvm-objdump --macho --rebase %t-pie | FileCheck %s --check-prefix=PIE
|
| H A D | tlv.s | 6 # RUN: %lld -lSystem -no_pie -o %t/regular-no-pie %t/regular.o 7 # RUN: llvm-otool -hv %t/regular-no-pie | FileCheck %s --check-prefix=HEADER 8 # RUN: llvm-objdump -d --bind --rebase %t/regular-no-pie | FileCheck %s --check-prefixes=REG,LINKED… 9 # RUN: llvm-objdump --macho --section=__DATA,__thread_vars %t/regular-no-pie | \ 12 # RUN: %lld -lSystem %t/regular.o -o %t/regular-pie 13 # RUN: llvm-otool -hv %t/regular-pie | FileCheck %s --check-prefix=HEADER 14 # RUN: llvm-objdump -d --bind --rebase %t/regular-pie | FileCheck %s --check-prefixes=REG,LINKEDIT 15 # RUN: llvm-objdump --macho --section=__DATA,__thread_vars %t/regular-pie | \
|
| H A D | x86-64-stubs.s | 15 # RUN: %lld -no_pie -data_const -o %t/dylink-lazy-no-pie \ 22 … -d --no-show-raw-insn --syms --rebase --bind --lazy-bind %t/dylink-lazy-no-pie > %t/objdump-no-pie 23 # RUN: llvm-objdump -D --no-show-raw-insn %t/dylink-lazy-no-pie >> %t/objdump-no-pie 24 # RUN: FileCheck %s --check-prefixes=CHECK,NO-PIE < %t/objdump-no-pie
|
| H A D | mh-execute-header.s | 4 # RUN: %lld -o %t/test.pie %t/test.o 5 # RUN: llvm-objdump --macho --syms %t/test.pie | FileCheck %s --check-prefix=PIE
|
| /llvm-project-15.0.7/bolt/test/runtime/ |
| H A D | plt-lld.test | 5 RUN: %clang %cflags -no-pie %p/../Inputs/plt.c -fuse-ld=lld \ 11 RUN: %clang %cflags -fPIC -pie %p/../Inputs/plt.c -fuse-ld=lld \ 12 RUN: -o %t.lld.pie.exe -Wl,-q 13 RUN: llvm-bolt %t.lld.pie.exe -o %t.lld.bolt.pie.exe --use-old-text=0 --lite=0 14 RUN: %t.lld.bolt.pie.exe | FileCheck %s
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | weak-undef-rw.s | 5 # RUN: ld.lld %t.o -o %t.pie -pie 6 # RUN: llvm-readobj -r %t.pie | FileCheck %s --check-prefix=PIC 11 ## We choose to resolve them statically for -no-pie and produce dynamic relocations 12 ## for -pie and -shared.
|
| H A D | relative-dynamic-reloc-pie.s | 3 # RUN: ld.lld -pie %t.o -o %t.pie 4 # RUN: llvm-readobj -r --dyn-syms %t.pie | FileCheck %s 6 ## Test that we create R_X86_64_RELATIVE relocations with -pie.
|
| H A D | mips64-eh-abs-reloc.s | 10 # -pie needs -z notext because of the R_MIPS_64 relocation 11 # RUN: ld.lld --eh-frame-hdr -Bdynamic -pie -z notext -o %t-pie-dynamic.exe %t.o %t-foo.o --no-chec… 12 # RUN: llvm-readobj -r %t-pie-dynamic.exe | FileCheck %s -check-prefix PIC-RELOCS
|
| H A D | riscv-relax-call2.s | 9 # RUN: ld.lld -T lds -pie a.o -o a.pie 10 # RUN: llvm-objdump -d --no-show-raw-insn -M no-aliases a.pie | FileCheck %s 12 # RUN: ld.lld -T lds -pie -z notext -z ifunc-noplt a.o -o a.ifunc-noplt
|
| H A D | canonical-plt-symbolic.s | 3 ## Test canonical PLT can be created for -no-pie and -pie. 12 # RUN: ld.lld %t.o %t1.so -o %t -pie
|
| H A D | mips-elf-abi.s | 9 # RUN: ld.lld -pie -o %t.pie %t.o 10 # RUN: llvm-readobj -h %t.pie | FileCheck -check-prefix=PIE %s
|
| H A D | i386-tls-le.s | 4 # RUN: ld.lld %t.o -pie -o %t.pie 7 # RUN: llvm-objdump -d --no-show-raw-insn %t.pie | FileCheck %s --check-prefix=DIS 8 # RUN: llvm-readobj -r %t.pie | FileCheck %s --check-prefix=RELOC
|
| H A D | riscv-reloc-add.s | 3 # RUN: ld.lld -pie %t.32.o -o %t.32 14 ## not allowed in -pie/-shared mode. 30 ## in such non-SHF_ALLOC sections in -pie/-shared mode.
|
| H A D | canonical-plt-pcrel.s | 3 ## Test canonical PLT can be created for -no-pie and -pie. 13 # RUN: ld.lld %t.o %t1.so -o %t -pie
|
| H A D | driver.test | 45 ## Attempt to use -r and -pie together 46 # RUN: not ld.lld -r -pie %t -o /dev/null 2>&1 | FileCheck -check-prefix=ERR6 %s 47 # ERR6: -r and -pie may not be used together 49 ## Attempt to use -shared and -pie together 50 # RUN: not ld.lld -shared -pie %t -o /dev/null 2>&1 | FileCheck -check-prefix=ERR7 %s 51 # ERR7: -shared and -pie may not be used together
|
| H A D | pack-dyn-relocs-glibc.s | 10 # RUN: ld.lld -pie %t/a.o %t/libc.so.6 -z pack-relative-relocs -o %t/glibc 2>&1 | count 0 13 # RUN: ld.lld -pie %t/a.o %t/libc.so.6 -z pack-relative-relocs --pack-dyn-relocs=relr -o %t/glibc2 24 # RUN: ld.lld -pie %t/a.o %t/libc.so.6 -z pack-relative-relocs -z nopack-relative-relocs -o %t/notr… 33 # RUN: ld.lld -pie %t/a.o %t/ld.so -z pack-relative-relocs -o %t/other 2>&1 | count 0
|
| H A D | separate-segments.s | 6 # RUN: ld.lld -pie %t.o -o %t 15 # RUN: ld.lld -pie %t.o -z separate-code -o %t 23 # RUN: ld.lld -pie %t.o -z separate-loadable-segments -o %t
|
| H A D | riscv-ifunc-nonpreemptible.s | 3 # RUN: ld.lld -pie %t.32.o -o %t.32 4 # RUN: ld.lld -pie %t.32.o -o %t.32-apply --apply-dynamic-relocs 11 # RUN: ld.lld -pie %t.64.o -o %t.64 12 # RUN: ld.lld -pie %t.64.o -o %t.64-apply --apply-dynamic-relocs
|
| H A D | weak-undef-no-dynamic-linker.s | 3 # RUN: ld.lld -pie %t.o -o %t 5 # RUN: ld.lld -pie --no-dynamic-linker %t.o -o %t
|
| H A D | pie.s | 9 ## Check -pie. 10 # RUN: ld.lld -pie %t1.o -o %t 54 # RUN: ld.lld -no-pie %t1.o -o %t2
|
| H A D | riscv-gp-no-sdata.s | 3 # RUN: ld.lld -pie %t.32.o -o %t.32 7 # RUN: ld.lld -pie %t.64.o -o %t.64
|
| /llvm-project-15.0.7/clang/test/Driver/ |
| H A D | hip-fpie-option.hip | 1 // REQUIRES: amdgpu-registered-target, default-pie-on-linux 36 // HOST-PIC-NOT: "-pic-is-pie" 37 … "-triple" "x86_64-unknown-linux-gnu".* "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie"}} 38 // DEV-NOT: {{".*clang.*".* "-triple" "amdgcn-amd-amdhsa".* "-pic-is-pie"}}
|
| /llvm-project-15.0.7/bolt/test/X86/ |
| H A D | exceptions-args.test | 4 RUN: %clang %cflags %p/../Inputs/stub.c -fPIC -pie -shared -o %t.so 5 RUN: %clangxx %cxxflags -no-pie %p/Inputs/exc_args.s -o %t %t.so -Wl,-z,notext
|
| /llvm-project-15.0.7/lld/test/ELF/lto/ |
| H A D | abs-resol.ll | 5 ; RUN: ld.lld %t.o %t2.o -o %t3.out -pie 8 ; RUN: ld.lld %t.o -T%t.script -o %t4.out -pie
|
| /llvm-project-15.0.7/lld/test/wasm/ |
| H A D | tls-non-shared-memory.s | 51 # RUN: wasm-ld --experimental-pic --no-gc-sections --no-entry -pie -o %t-pie.wasm %t.o 52 # RUN: obj2yaml %t-pie.wasm | FileCheck %s --check-prefixes=PIE,PIC 54 …--features=atomics,bulk-memory,extended-const --no-gc-sections --no-entry -pie -o %t-extended-cons…
|