diff options
| author | Roland McGrath | 1995-11-16 01:46:10 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-11-16 01:46:10 +0000 |
| commit | 6c6b28ea7f9fa815972f6308ab3cbb336516fecb (patch) | |
| tree | 697ba9221157c4387e6d766ae56d5e2060fba533 /src/mem-limits.h | |
| parent | c8e9dd5444cb0cc9277d92e65577035d421015d7 (diff) | |
| download | emacs-6c6b28ea7f9fa815972f6308ab3cbb336516fecb.tar.gz emacs-6c6b28ea7f9fa815972f6308ab3cbb336516fecb.zip | |
[_LIBC] (start_of_data): Use weak ref to __data_start; use &etext if not
present.
Diffstat (limited to 'src/mem-limits.h')
| -rw-r--r-- | src/mem-limits.h | 7 |
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 | ||
| 32 | extern int __data_start; | 32 | /* Old Linux startup code won't define __data_start. */ |
| 33 | #define start_of_data() &__data_start | 33 | extern 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 */ |
| 92 | extern char etext; | 93 | extern char etext; |
| 93 | #define start_of_data() &etext | 94 | #define start_of_data() &etext |
| 94 | #endif /* not emacs */ | 95 | #endif /* not emacs */ |