diff --git a/libcxx/src/include/overridable_function.h b/libcxx/src/include/overridable_function.h index 7b0fba10f47d4..e871411021f0f 100644 --- a/libcxx/src/include/overridable_function.h +++ b/libcxx/src/include/overridable_function.h @@ -95,8 +95,8 @@ _LIBCPP_END_NAMESPACE_STD // variables with those names corresponding to the start and the end of the section. // // See https://stackoverflow.com/questions/16552710/how-do-you-get-the-start-and-end-addresses-of-a-custom-elf-section -extern char __start___lcxx_override; -extern char __stop___lcxx_override; +_LIBCPP_WEAK extern char __start___lcxx_override; +_LIBCPP_WEAK extern char __stop___lcxx_override; _LIBCPP_BEGIN_NAMESPACE_STD template