summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeale Ferguson <neale@sinenomine.net>2013-05-09 15:42:58 -0400
committerIvan Maidanski <ivmai@mail.ru>2013-09-15 19:19:31 +0400
commit4a0d2d244f47a57fa9c97777330fe8c382e353e8 (patch)
tree288a8a11f194a0f83550332122ef525b3e0004db
parent1a428a37c25a99de7f901c5640aa985ea501b514 (diff)
downloadbdwgc-4a0d2d244f47a57fa9c97777330fe8c382e353e8.tar.gz
Add weak attribute to avoid __data_start undefined messages (s390x)
(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
-rw-r--r--include/private/gcconfig.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 0b4e02b4..56eabda8 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -1941,12 +1941,12 @@
# 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