summaryrefslogtreecommitdiffstats
path: root/toolkit/library/StaticXULComponentsStart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/library/StaticXULComponentsStart.cpp')
-rw-r--r--toolkit/library/StaticXULComponentsStart.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolkit/library/StaticXULComponentsStart.cpp b/toolkit/library/StaticXULComponentsStart.cpp
index 1738aa810..d2e9a8828 100644
--- a/toolkit/library/StaticXULComponentsStart.cpp
+++ b/toolkit/library/StaticXULComponentsStart.cpp
@@ -1,3 +1,6 @@
#include "mozilla/Module.h"
-NSMODULE_DEFN(start_kPStaticModules) = nullptr;
+/* This could be null, but this needs a dummy value to ensure it actually ends
+ * up in the same section as other NSMODULE_DEFNs, instead of being moved to a
+ * separate readonly section. */
+NSMODULE_DEFN(start_kPStaticModules) = (mozilla::Module*)&NSMODULE_NAME(start_kPStaticModules);