]> granicus.if.org Git - gc/commitdiff
Make __data_start a weak symbol to allow loading modules on mips
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 13 Dec 2011 15:35:10 +0000 (15:35 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 4 Mar 2012 12:35:36 +0000 (16:35 +0400)
* include/private/gcconfig.h (__data_start): Add "pragma weak" for
MIPS target (to allow loading modules).

include/private/gcconfig.h

index 3597de22d3a4af9cde2433ba0e3404a8d53bde61..9bb2944840073fe8fde0be467ae8875b955aa5cd 100644 (file)
 #     define DYNAMIC_LOADING
       extern int _end[];
 #     define DATAEND (ptr_t)(_end)
+#     pragma weak __data_start
       extern int __data_start[];
 #     define DATASTART ((ptr_t)(__data_start))
 #     ifdef _MIPS_SZPTR