emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master dec1390 03/15: unexelf.c hook to support HYBRID_MAL


From: Paul Eggert
Subject: [Emacs-diffs] master dec1390 03/15: unexelf.c hook to support HYBRID_MALLOC on ELF
Date: Sat, 30 Jan 2016 23:26:14 +0000

branch: master
commit dec139084586762793448277ebe80cfa7a1790b3
Author: Rich Felker <address@hidden>
Commit: Paul Eggert <address@hidden>

    unexelf.c hook to support HYBRID_MALLOC on ELF
    
    * src/unexelf.c (unexec) [HYBRID_MALLOC]:
    Define bss_sbrk_did_unexec (Bug#22086).
    Copyright-paperwork-exempt: yes
---
 src/unexelf.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/unexelf.c b/src/unexelf.c
index e901994..32aa1b2 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -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;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]