diff options
author | Rich Felker <dalias@libc.org> | 2016-01-30 14:20:56 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-01-30 15:26:07 -0800 |
commit | dec139084586762793448277ebe80cfa7a1790b3 (patch) | |
tree | d83e2b9cea49f836533606108c263a4b27f7a4ea /src/unexelf.c | |
parent | a5f85861293911b3f394464a04f7972b83d47a95 (diff) | |
download | emacs-dec139084586762793448277ebe80cfa7a1790b3.tar.gz |
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
Diffstat (limited to 'src/unexelf.c')
-rw-r--r-- | src/unexelf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unexelf.c b/src/unexelf.c index e90199472ed..32aa1b281da 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; |