From 3fe3a65c185da62976c433bb77b2b21cb9551d0e Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sat, 8 Aug 2020 16:38:45 -0700 Subject: [PATCH] export cnt_* Apparently clang sometimes emits relocations in .debug sections referencing these otherwise hidden symbols. --- src/utilpvt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilpvt.h b/src/utilpvt.h index 720aac4..d2c31cd 100644 --- a/src/utilpvt.h +++ b/src/utilpvt.h @@ -253,7 +253,7 @@ struct InstCounter #define INST_COUNTER(KLASS) InstCounter<&cnt_ ## KLASS> instances -#define CASE(KLASS) extern std::atomic cnt_ ## KLASS +#define CASE(KLASS) PVXS_API extern std::atomic cnt_ ## KLASS CASE(StructTop);