1 # HG changeset patch |
|
2 # User Wolfgang Rosenauer <wr@rosenauer.org> |
|
3 # Parent 83bc32d997c714b607db1ffa71f02b30e1484a75 |
|
4 From: NetBSD |
|
5 Subject: Workaround for gcc/binutils combination in Leap 42.2 |
|
6 References: |
|
7 https://bugzilla.opensuse.org/show_bug.cgi?id=984637 |
|
8 |
|
9 diff --git a/xpcom/components/Module.h b/xpcom/components/Module.h |
|
10 --- a/xpcom/components/Module.h |
|
11 +++ b/xpcom/components/Module.h |
|
12 @@ -120,17 +120,17 @@ struct Module |
|
13 #if defined(MOZILLA_INTERNAL_API) |
|
14 # define NSMODULE_NAME(_name) _name##_NSModule |
|
15 # if defined(_MSC_VER) |
|
16 # pragma section(".kPStaticModules$M", read) |
|
17 # pragma comment(linker, "/merge:.kPStaticModules=.rdata") |
|
18 # define NSMODULE_SECTION __declspec(allocate(".kPStaticModules$M"), dllexport) |
|
19 # elif defined(__GNUC__) |
|
20 # if defined(__ELF__) |
|
21 -# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("protected"))) |
|
22 +# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("default"))) |
|
23 # elif defined(__MACH__) |
|
24 # define NSMODULE_SECTION __attribute__((section("__DATA, .kPStaticModules"), visibility("default"))) |
|
25 # elif defined (_WIN32) |
|
26 # define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), dllexport)) |
|
27 # endif |
|
28 # endif |
|
29 # if !defined(NSMODULE_SECTION) |
|
30 # error Do not know how to define sections. |
|