From: Roland McGrath Date: Thu, 16 Nov 1995 01:46:10 +0000 (+0000) Subject: [_LIBC] (start_of_data): Use weak ref to __data_start; use &etext if not X-Git-Tag: emacs-19.34~2297 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c6b28ea7f9fa815972f6308ab3cbb336516fecb;p=emacs.git [_LIBC] (start_of_data): Use weak ref to __data_start; use &etext if not present. --- diff --git a/src/mem-limits.h b/src/mem-limits.h index e814de10f0d..c63e0b48399 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h @@ -29,8 +29,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #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 @@ extern char etext; #endif #endif -#else /* not emacs */ +#else /* not emacs */ extern char etext; #define start_of_data() &etext #endif /* not emacs */