diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn index 5b8d4edfcb6..bad9e897d6e 100644 --- a/build/config/sanitizers/BUILD.gn +++ b/build/config/sanitizers/BUILD.gn @@ -15,7 +15,7 @@ group("deps") { } config("sanitizer_options_link_helper") { - ldflags = [ "-Wl,-u_sanitizer_options_link_helper" ] + ldflags = [ "-Wl,-u,_sanitizer_options_link_helper" ] } source_set("options_sources") { diff --git a/build/sanitizers/sanitizer_options.cc b/build/sanitizers/sanitizer_options.cc index 6be233ddf4a..14a06227e54 100644 --- a/build/sanitizers/sanitizer_options.cc +++ b/build/sanitizers/sanitizer_options.cc @@ -8,7 +8,7 @@ // Functions returning default options are declared weak in the tools' runtime // libraries. To make the linker pick the strong replacements for those // functions from this module, we explicitly force its inclusion by passing -// -Wl,-u_sanitizer_options_link_helper +// -Wl,-u,_sanitizer_options_link_helper extern "C" void _sanitizer_options_link_helper() {} // The callbacks we define here will be called from the sanitizer runtime, but