mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-27 10:21:14 -08:00
[_LIBC] (start_of_data): Use weak ref to __data_start; use &etext if not
present.
This commit is contained in:
parent
c8e9dd5444
commit
6c6b28ea7f
1 changed files with 4 additions and 3 deletions
|
|
@ -29,8 +29,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
#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 @@ extern char etext;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#else /* not emacs */
|
||||
#else /* not emacs */
|
||||
extern char etext;
|
||||
#define start_of_data() &etext
|
||||
#endif /* not emacs */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue