changeset 13563:c011026c071d

[_LIBC] (start_of_data): Use weak ref to __data_start; use &etext if not present.
author Roland McGrath <roland@gnu.org>
date Thu, 16 Nov 1995 01:46:10 +0000
parents 80870ef96f18
children 8238a4262b6d
files src/mem-limits.h
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/mem-limits.h	Wed Nov 15 23:17:18 1995 +0000
+++ b/src/mem-limits.h	Thu Nov 16 01:46:10 1995 +0000
@@ -29,8 +29,9 @@
 #include <sys/resource.h>
 #define BSD4_2			/* Tell code below to use getrlimit.  */
 
-extern int __data_start;
-#define start_of_data()	&__data_start
+/* Old Linux startup code won't define __data_start.  */
+extern int __data_start; weak_symbol (__data_start)
+#define start_of_data()	(&__data_start ?: &etext)
 
 #else /* not _LIBC */
 
@@ -88,7 +89,7 @@
 #endif
 #endif
 
-#else  /* not emacs */ 
+#else  /* not emacs */
 extern char etext;
 #define start_of_data() &etext
 #endif /* not emacs */