From: Richard M. Stallman Date: Mon, 14 Jul 1997 19:55:57 +0000 (+0000) Subject: (unexec): Don't call update_dynamic_symbols if static link. X-Git-Tag: emacs-20.1~1166 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ca5cfd1e8684b734308dc9c5a0b2046e65cca04;p=emacs.git (unexec): Don't call update_dynamic_symbols if static link. --- diff --git a/src/unexalpha.c b/src/unexalpha.c index df77236b573..1205d39dd4a 100644 --- a/src/unexalpha.c +++ b/src/unexalpha.c @@ -398,8 +398,10 @@ unexec (new_name, a_name, data_start, bss_start, entry_address) stat.st_size - ohdr.fhdr.f_symptr - cbHDRR, "writing symbol table of %s", new_name); - - update_dynamic_symbols (oldptr, new_name, new, nhdr.aout); +#ifdef _REL_DYN + if (rel_dyn_section) + update_dynamic_symbols (oldptr, new_name, new, nhdr.aout); +#endif #undef symhdr