Skip to content

Commit 4958c19

Browse files
committed
Make the impl symbols static
Having global symbols with .L names is not well supported.
1 parent 00ec430 commit 4958c19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/src/include/overridable_function.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ _LIBCPP_END_NAMESPACE_STD
9090

9191
# define _LIBCPP_CAN_DETECT_OVERRIDDEN_FUNCTION 1
9292
# define _LIBCPP_OVERRIDABLE_FUNCTION(symbol, type, name, arglist) \
93-
type symbol##_impl__ arglist __asm__(".L" _LIBCPP_TOSTRING(symbol)); \
93+
static type symbol##_impl__ arglist __asm__(".L" _LIBCPP_TOSTRING(symbol)); \
9494
[[gnu::weak, gnu::alias(".L" _LIBCPP_TOSTRING(symbol))]] type name arglist; \
9595
_LIBCPP_BEGIN_NAMESPACE_STD \
9696
template <> \
9797
inline bool __is_function_overridden<static_cast<type(*) arglist>(name)>() { \
9898
return static_cast<type(*) arglist>(name) != symbol##_impl__; \
9999
} \
100100
_LIBCPP_END_NAMESPACE_STD \
101-
type symbol##_impl__ arglist
101+
static type symbol##_impl__ arglist
102102

103103
#else
104104

0 commit comments

Comments
 (0)