#define BT_LOG_TAG "COMPAT-MMAN"
#include "logging.h"
+#ifdef __APPLE__
+/*
+ * On macOS, we need a dummy symbol so that the linker won't
+ * complain of an empty table of contents.
+ */
+BT_HIDDEN
+int bt_mman_dummy_symbol;
+#endif /* __APPLE__ */
+
#ifdef __MINGW32__
#include <errno.h>
}
/* Add the new mapping to the hashtable. */
- if (!g_hash_table_insert(mmap_mappings, mapping_addr, mapping)) {
- BT_LOGF_STR("Failed to insert mapping in the hashtable.");
- abort();
- }
+ g_hash_table_insert(mmap_mappings, mapping_addr, mapping);
mmap_unlock();