aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gprofng/src/collector_module.h')
-rw-r--r--gprofng/src/collector_module.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gprofng/src/collector_module.h b/gprofng/src/collector_module.h
index 512af7a6a51..f608dab5831 100644
--- a/gprofng/src/collector_module.h
+++ b/gprofng/src/collector_module.h
@@ -220,4 +220,15 @@ extern "C"
}
#endif
+#ifdef __has_attribute
+# if __has_attribute (__symver__)
+# define SYMVER_ATTRIBUTE(sym, symver) \
+ __attribute__ ((__symver__ (#symver)))
+# endif
+#endif
+#ifndef SYMVER_ATTRIBUTE
+# define SYMVER_ATTRIBUTE(sym, symver) \
+ __asm__(".symver " #sym "," #symver);
+#endif
+
#endif /* _COLLECTOR_MODULE_H */