Skip to content

Commit

Permalink
Merged master:9292ece9956 into amd-gfx:60c505a7221
Browse files Browse the repository at this point in the history
Local branch amd-gfx 60c505a Merged master:b631f86ac5b into amd-gfx:f8f92f28e4b
Remote branch master 9292ece [clang driver] Spell "--export-dynamic-symbol" with two dashes.
  • Loading branch information
Sw authored and Sw committed May 23, 2020
2 parents 60c505a + 9292ece commit c4aada5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/CommonArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/sanitizer-ld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit c4aada5

Please sign in to comment.