]> git.eshelyaron.com Git - emacs.git/commitdiff
unexelf.c hook to support HYBRID_MALLOC on ELF
authorRich Felker <dalias@libc.org>
Sat, 30 Jan 2016 22:20:56 +0000 (14:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Jan 2016 23:26:07 +0000 (15:26 -0800)
* src/unexelf.c (unexec) [HYBRID_MALLOC]:
Define bss_sbrk_did_unexec (Bug#22086).
Copyright-paperwork-exempt: yes

src/unexelf.c

index e90199472ed2e359e9d25e596af278178ba8ba56..32aa1b281da320c9fed83711de1ee3a7d6b6b852 100644 (file)
@@ -227,6 +227,11 @@ unexec (const char *new_name, const char *old_name)
   off_t new_file_size;
   void *new_break;
 
+#ifdef HYBRID_MALLOC
+  extern int bss_sbrk_did_unexec;
+  bss_sbrk_did_unexec = 1;
+#endif
+
   /* Pointers to the base of the image of the two files.  */
   caddr_t old_base, new_base;