Home
last modified time | relevance | path

Searched refs:pie (Results 1 – 25 of 160) sorted by relevance

1234567

/llvm-project-15.0.7/lld/test/MachO/
H A Dx86-64-reloc-unsigned.s6 # 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 Dtlv.s6 # 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 Dx86-64-stubs.s15 # 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 Dmh-execute-header.s4 # 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 Dplt-lld.test5 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 Dweak-undef-rw.s5 # 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 Drelative-dynamic-reloc-pie.s3 # 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 Dmips64-eh-abs-reloc.s10 # -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 Driscv-relax-call2.s9 # 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 Dcanonical-plt-symbolic.s3 ## Test canonical PLT can be created for -no-pie and -pie.
12 # RUN: ld.lld %t.o %t1.so -o %t -pie
H A Dmips-elf-abi.s9 # RUN: ld.lld -pie -o %t.pie %t.o
10 # RUN: llvm-readobj -h %t.pie | FileCheck -check-prefix=PIE %s
H A Di386-tls-le.s4 # 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 Driscv-reloc-add.s3 # 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 Dcanonical-plt-pcrel.s3 ## Test canonical PLT can be created for -no-pie and -pie.
13 # RUN: ld.lld %t.o %t1.so -o %t -pie
H A Ddriver.test45 ## 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 Dpack-dyn-relocs-glibc.s10 # 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 Dseparate-segments.s6 # 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 Driscv-ifunc-nonpreemptible.s3 # 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 Dweak-undef-no-dynamic-linker.s3 # RUN: ld.lld -pie %t.o -o %t
5 # RUN: ld.lld -pie --no-dynamic-linker %t.o -o %t
H A Dpie.s9 ## Check -pie.
10 # RUN: ld.lld -pie %t1.o -o %t
54 # RUN: ld.lld -no-pie %t1.o -o %t2
H A Driscv-gp-no-sdata.s3 # 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 Dhip-fpie-option.hip1 // 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 Dexceptions-args.test4 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 Dabs-resol.ll5 ; 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 Dtls-non-shared-memory.s51 # 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…

1234567