brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 01720ed Raw
58 lines · c
1// NO-PIE-NOT: "-pie"2// PIE: "-pie"3 4// RUN: %clang %s -### -o %t.o 2>&1 --target=arm-linux-androideabi \5// RUN:   | FileCheck --check-prefix=PIE %s6// RUN: %clang %s -### -o %t.o 2>&1 --target=arm-linux-android \7// RUN:   | FileCheck --check-prefix=PIE %s8// RUN: %clang %s -### -o %t.o 2>&1 --target=arm-linux-android24 \9// RUN:   | FileCheck --check-prefix=PIE %s10 11// RUN: %clang %s -### -o %t.o 2>&1 --target=i686-linux-android \12// RUN:   | FileCheck --check-prefix=PIE %s13// RUN: %clang %s -### -o %t.o 2>&1 --target=i686-linux-android24 \14// RUN:   | FileCheck --check-prefix=PIE %s15 16// RUN: %clang %s -### -o %t.o 2>&1 --target=aarch64-linux-android \17// RUN:   | FileCheck --check-prefix=PIE %s18// RUN: %clang %s -### -o %t.o 2>&1 --target=aarch64-linux-android24 \19// RUN:   | FileCheck --check-prefix=PIE %s20 21// RUN: %clang %s -### -o %t.o 2>&1 --target=arm64-linux-android \22// RUN:   | FileCheck --check-prefix=PIE %s23// RUN: %clang %s -### -o %t.o 2>&1 --target=arm64-linux-android24 \24// RUN:   | FileCheck --check-prefix=PIE %s25 26// RUN: %clang %s -### -o %t.o 2>&1 --target=x86_64-linux-android \27// RUN:   | FileCheck --check-prefix=PIE %s28// RUN: %clang %s -### -o %t.o 2>&1 --target=x86_64-linux-android24 \29// RUN:   | FileCheck --check-prefix=PIE %s30 31// Override toolchain default setting.32// RUN: %clang %s -### -o %t.o 2>&1 -pie --target=arm-linux-androideabi \33// RUN:   | FileCheck --check-prefix=PIE %s34// RUN: %clang %s -### -o %t.o 2>&1 -no-pie -pie --target=arm-linux-androideabi24 \35// RUN:   | FileCheck --check-prefix=PIE %s36 37// RUN: %clang %s -### -o %t.o 2>&1 -no-pie --target=arm-linux-androideabi24 \38// RUN:   | FileCheck --check-prefix=NO-PIE %s39// RUN: %clang %s -### -o %t.o 2>&1 -pie -no-pie --target=arm-linux-androideabi24 \40// RUN:   | FileCheck --check-prefix=NO-PIE %s41 42// Static/shared/relocatable disable -pie43 44// RUN: %clang %s -### --target=aarch64-linux-android -static 2>&1 \45// RUN:     | FileCheck %s -check-prefix=CHECK-STATIC46// CHECK-STATIC-NOT: "-pie"47// CHECK-STATIC: -static48 49// RUN: %clang %s -### --target=aarch64-linux-android -shared 2>&1 \50// RUN:     | FileCheck %s -check-prefix=CHECK-SHARED51// CHECK-SHARED-NOT: "-pie"52// CHECK-SHARED: "-shared"53 54// RUN: %clang %s -### --target=aarch64-linux-android -r 2>&1 \55// RUN:     | FileCheck %s -check-prefix=CHECK-RELOCATABLE56// CHECK-RELOCATABLE-NOT: "-pie"57// CHECK-RELOCATABLE: "-r"58