|
940 | 940 | // CHECK-ANDROID-HASH-STYLE-M: "{{.*}}ld{{(.exe)?}}"
|
941 | 941 | // CHECK-ANDROID-HASH-STYLE-M: "--hash-style=gnu"
|
942 | 942 |
|
| 943 | +// Check that we pass --no-rosegment for pre-29 Android versions and do not for |
| 944 | +// 29+. |
| 945 | +// RUN: %clang %s -### -o %t.o 2>&1 \ |
| 946 | +// RUN: --target=armv7-linux-android28 \ |
| 947 | +// RUN: | FileCheck --check-prefix=CHECK-ANDROID-ROSEGMENT-28 %s |
| 948 | +// CHECK-ANDROID-ROSEGMENT-28: "{{.*}}ld{{(.exe)?}}" |
| 949 | +// CHECK-ANDROID-ROSEGMENT-28: "--no-rosegment" |
| 950 | +// |
| 951 | +// RUN: %clang %s -### -o %t.o 2>&1 \ |
| 952 | +// RUN: --target=armv7-linux-android29 \ |
| 953 | +// RUN: | FileCheck --check-prefix=CHECK-ANDROID-ROSEGMENT-29 %s |
| 954 | +// CHECK-ANDROID-ROSEGMENT-29: "{{.*}}ld{{(.exe)?}}" |
| 955 | +// CHECK-ANDROID-ROSEGMENT-29-NOT: "--no-rosegment" |
| 956 | + |
| 957 | +// Check that we pass --pack-dyn-relocs=relr for API 28+ and not before. |
| 958 | +// RUN: %clang %s -### -o %t.o 2>&1 \ |
| 959 | +// RUN: --target=armv7-linux-android27 \ |
| 960 | +// RUN: | FileCheck --check-prefix=CHECK-ANDROID-RELR-27 %s |
| 961 | +// CHECK-ANDROID-RELR-27: "{{.*}}ld{{(.exe)?}}" |
| 962 | +// CHECK-ANDROID-RELR-27-NOT: "--pack-dyn-relocs=relr" |
| 963 | +// CHECK-ANDROID-RELR-27-NOT: "--pack-dyn-relocs=android+relr" |
| 964 | +// |
| 965 | +// RUN: %clang %s -### -o %t.o 2>&1 \ |
| 966 | +// RUN: --target=armv7-linux-android28 \ |
| 967 | +// RUN: | FileCheck --check-prefix=CHECK-ANDROID-RELR-28 %s |
| 968 | +// CHECK-ANDROID-RELR-28: "{{.*}}ld{{(.exe)?}}" |
| 969 | +// CHECK-ANDROID-RELR-28: "--use-android-relr-tags" |
| 970 | +// CHECK-ANDROID-RELR-28: "--pack-dyn-relocs=relr" |
| 971 | +// CHECK-ANDROID-RELR-28-NOT: "--pack-dyn-relocs=android+relr" |
| 972 | + |
943 | 973 | // RUN: %clang -### %s -no-pie 2>&1 --target=mips64-linux-gnuabin32 \
|
944 | 974 | // RUN: | FileCheck --check-prefix=CHECK-MIPS64EL-GNUABIN32 %s
|
945 | 975 | // CHECK-MIPS64EL-GNUABIN32: "{{.*}}ld{{(.exe)?}}"
|
|
0 commit comments