forked from OSchip/llvm-project
[clang driver] Spell "--export-dynamic-symbol" with two dashes.
This doesn't make a difference for linkers that support the option, but it improves the error message from older linkers that don't support it.
This commit is contained in:
parent
b631f86ac5
commit
9292ece995
|
@ -774,7 +774,7 @@ bool tools::addSanitizerRuntimes(const ToolChain &TC, const ArgList &Args,
|
|||
CmdArgs.push_back("--export-dynamic");
|
||||
|
||||
if (SanArgs.hasCrossDsoCfi() && !AddExportDynamic)
|
||||
CmdArgs.push_back("-export-dynamic-symbol=__cfi_check");
|
||||
CmdArgs.push_back("--export-dynamic-symbol=__cfi_check");
|
||||
|
||||
return !StaticRuntimes.empty() || !NonWholeStaticRuntimes.empty();
|
||||
}
|
||||
|
|
|
@ -571,7 +571,7 @@
|
|||
// RUN: | FileCheck --check-prefix=CHECK-CFI-CROSS-DSO-DIAG-ANDROID %s
|
||||
// CHECK-CFI-CROSS-DSO-DIAG-ANDROID: "{{.*}}ld{{(.exe)?}}"
|
||||
// CHECK-CFI-CROSS-DSO-DIAG-ANDROID: "{{[^"]*}}libclang_rt.ubsan_standalone-aarch64-android.so"
|
||||
// CHECK-CFI-CROSS-DSO-DIAG-ANDROID: "-export-dynamic-symbol=__cfi_check"
|
||||
// CHECK-CFI-CROSS-DSO-DIAG-ANDROID: "--export-dynamic-symbol=__cfi_check"
|
||||
|
||||
// RUN: %clangxx -fsanitize=address %s -### -o %t.o 2>&1 \
|
||||
// RUN: -mmacosx-version-min=10.6 \
|
||||
|
|
Loading…
Reference in New Issue