aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRich Felker2016-01-30 14:20:56 -0800
committerPaul Eggert2016-01-30 15:26:07 -0800
commitdec139084586762793448277ebe80cfa7a1790b3 (patch)
treed83e2b9cea49f836533606108c263a4b27f7a4ea /src
parenta5f85861293911b3f394464a04f7972b83d47a95 (diff)
downloademacs-dec139084586762793448277ebe80cfa7a1790b3.tar.gz
emacs-dec139084586762793448277ebe80cfa7a1790b3.zip
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')
-rw-r--r--src/unexelf.c5
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)
227 off_t new_file_size; 227 off_t new_file_size;
228 void *new_break; 228 void *new_break;
229 229
230#ifdef HYBRID_MALLOC
231 extern int bss_sbrk_did_unexec;
232 bss_sbrk_did_unexec = 1;
233#endif
234
230 /* Pointers to the base of the image of the two files. */ 235 /* Pointers to the base of the image of the two files. */
231 caddr_t old_base, new_base; 236 caddr_t old_base, new_base;
232 237