From c45160462cbc50a3d5edce82bb002941eae3cd62 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 30 Apr 2019 15:14:04 -0700 Subject: [PATCH] ircd::mapi: Add default visibility attribute to macro and header. --- include/ircd/mods/mapi.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/ircd/mods/mapi.h b/include/ircd/mods/mapi.h index 6e88eef5e..53b1d752d 100644 --- a/include/ircd/mods/mapi.h +++ b/include/ircd/mods/mapi.h @@ -15,10 +15,12 @@ #define IRCD_MODULE_EXPORT_DATA_SECTION "ircd.data" #define IRCD_MODULE_EXPORT_CODE \ - __attribute__((section(IRCD_MODULE_EXPORT_CODE_SECTION))) + __attribute__((section(IRCD_MODULE_EXPORT_CODE_SECTION))) \ + __attribute__((visibility("default"))) #define IRCD_MODULE_EXPORT_DATA \ - __attribute__((section(IRCD_MODULE_EXPORT_DATA_SECTION))) + __attribute__((section(IRCD_MODULE_EXPORT_DATA_SECTION))) \ + __attribute__((visibility("default"))) // Common convenience #define IRCD_MODULE_EXPORT \ @@ -82,7 +84,8 @@ IRCD_MAPI_SERIAL /// be externally visible. If this is not present or not visible, ircd::mods /// will not consider the file to be an IRCd module and it will be ignored. /// -struct ircd::mapi::header +struct __attribute__((visibility("default"))) +ircd::mapi::header { const magic_t magic {IRCD_MAPI_MAGIC}; // The magic must match const version_t version {IRCD_MAPI_VERSION}; // Version indicator