aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mem-limits.h7
1 files changed, 4 insertions, 3 deletions
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. */
29#include <sys/resource.h> 29#include <sys/resource.h>
30#define BSD4_2 /* Tell code below to use getrlimit. */ 30#define BSD4_2 /* Tell code below to use getrlimit. */
31 31
32extern int __data_start; 32/* Old Linux startup code won't define __data_start. */
33#define start_of_data() &__data_start 33extern int __data_start; weak_symbol (__data_start)
34#define start_of_data() (&__data_start ?: &etext)
34 35
35#else /* not _LIBC */ 36#else /* not _LIBC */
36 37
@@ -88,7 +89,7 @@ extern char etext;
88#endif 89#endif
89#endif 90#endif
90 91
91#else /* not emacs */ 92#else /* not emacs */
92extern char etext; 93extern char etext;
93#define start_of_data() &etext 94#define start_of_data() &etext
94#endif /* not emacs */ 95#endif /* not emacs */