comparison src/lastfile.c @ 57623:1293d7f90911

* emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF): New variables and constant. (main): Calculate heap_bss_diff. If we are dumping and the heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32 and exec ourself again. (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF print a warning. * lastfile.c: Make my_endbss and my_endbss_static available on all platforms. * Makefile.in (RUN_TEMACS): Remove @SETARCH@. * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
author Jan Djärv <jan.h.d@swipnet.se>
date Wed, 20 Oct 2004 16:23:30 +0000
parents 3e88eecfd57d
children a8fa7c632ee4 f3ec05478165
comparison
equal deleted inserted replaced
57622:a17f324d7b7f 57623:1293d7f90911
38 38
39 #include <config.h> 39 #include <config.h>
40 40
41 char my_edata[] = "End of Emacs initialized data"; 41 char my_edata[] = "End of Emacs initialized data";
42 42
43 #if defined(WINDOWSNT) || defined(CYGWIN)
44 /* Help unexec locate the end of the .bss area used by Emacs (which 43 /* Help unexec locate the end of the .bss area used by Emacs (which
45 isn't always a separate section in NT executables). */ 44 isn't always a separate section in NT executables). */
46 char my_endbss[1]; 45 char my_endbss[1];
47 46
48 /* The Alpha MSVC linker globally segregates all static and public bss 47 /* The Alpha MSVC linker globally segregates all static and public bss
49 data, so we must take both into account to determine the true extent 48 data, so we must take both into account to determine the true extent
50 of the bss area used by Emacs. */ 49 of the bss area used by Emacs. */
51 static char _my_endbss[1]; 50 static char _my_endbss[1];
52 char * my_endbss_static = _my_endbss; 51 char * my_endbss_static = _my_endbss;
53 #endif
54 52
55 /* arch-tag: 67e81ab4-e14f-44b2-8875-c0c12252223e 53 /* arch-tag: 67e81ab4-e14f-44b2-8875-c0c12252223e
56 (do not change this comment) */ 54 (do not change this comment) */