Add weak attribute to avoid __data_start undefined messages (s390x)
authorNeale Ferguson <neale@sinenomine.net>
Thu, 9 May 2013 19:42:58 +0000 (15:42 -0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Sep 2013 15:19:31 +0000 (19:19 +0400)
(Apply commit 8d3e3ac from 'mono_libgc' branch.)

* include/private/gcconfig.h (__data_start, _end): Add "weak"
attribute for Linux/s390.

Conflicts:

    include/private/gcconfig.h

include/private/gcconfig.h

index 0b4e02b..56eabda 100644 (file)
 #       define OS_TYPE "LINUX"
 #       define LINUX_STACKBOTTOM
 #       define DYNAMIC_LOADING
-        extern int __data_start[];
+        extern int __data_start[] __attribute__((__weak__));
 #       define DATASTART ((ptr_t)(__data_start))
-    extern int _end[];
-#   define DATAEND (ptr_t)(_end)
-#   define CACHE_LINE_SIZE 256
-#   define GETPAGESIZE() 4096
+        extern int _end[] __attribute__((__weak__));
+#       define DATAEND (ptr_t)(_end)
+#       define CACHE_LINE_SIZE 256
+#       define GETPAGESIZE() 4096
 #   endif
 # endif