diff options
author | Pale Moon <git-repo@palemoon.org> | 2016-11-23 14:56:10 +0100 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2016-11-23 14:56:10 +0100 |
commit | fd08289effe867ad2b1379bfb3bf7f49a1ef34bf (patch) | |
tree | 680e02ef92ffab4ff9b0f52a5de2214faa180245 /xpcom | |
parent | 9f44bb00a9ae34be58f0e8e447a316994a519516 (diff) | |
download | palemoon-gre-fd08289effe867ad2b1379bfb3bf7f49a1ef34bf.tar.gz |
Fix linking libxul.so with binutils/GNU ld >= 2.26.
This is a patch from 2016/04/27 16:36:50 ryoon found on
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/www/firefox45/patches/#dirlist.
This should be a permanent fix for #704 as opposed to enforcing ld.gold.
Diffstat (limited to 'xpcom')
-rw-r--r-- | xpcom/components/Module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xpcom/components/Module.h b/xpcom/components/Module.h index 1571ccf51..19dbbe86a 100644 --- a/xpcom/components/Module.h +++ b/xpcom/components/Module.h @@ -124,7 +124,7 @@ struct Module # 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) |