diff -r 6838f0c032f8 -r 4e5807284ef0 mozilla-binutils-visibility.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-binutils-visibility.patch Wed Jun 15 09:53:47 2016 +0200 @@ -0,0 +1,30 @@ +# HG changeset patch +# User Wolfgang Rosenauer +# Parent 83bc32d997c714b607db1ffa71f02b30e1484a75 +From: NetBSD +Subject: Workaround for gcc/binutils combination in Leap 42.2 +References: +https://bugzilla.opensuse.org/show_bug.cgi?id=984637 + +diff --git a/xpcom/components/Module.h b/xpcom/components/Module.h +--- a/xpcom/components/Module.h ++++ b/xpcom/components/Module.h +@@ -120,17 +120,17 @@ struct Module + #if defined(MOZILLA_INTERNAL_API) + # define NSMODULE_NAME(_name) _name##_NSModule + # if defined(_MSC_VER) + # pragma section(".kPStaticModules$M", read) + # pragma comment(linker, "/merge:.kPStaticModules=.rdata") + # define NSMODULE_SECTION __declspec(allocate(".kPStaticModules$M"), dllexport) + # elif defined(__GNUC__) + # if defined(__ELF__) +-# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("protected"))) ++# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("default"))) + # elif defined(__MACH__) + # define NSMODULE_SECTION __attribute__((section("__DATA, .kPStaticModules"), visibility("default"))) + # elif defined (_WIN32) + # define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), dllexport)) + # endif + # endif + # if !defined(NSMODULE_SECTION) + # error Do not know how to define sections.