From 6ca5cfd1e8684b734308dc9c5a0b2046e65cca04 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 14 Jul 1997 19:55:57 +0000 Subject: [PATCH] (unexec): Don't call update_dynamic_symbols if static link. --- src/unexalpha.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.11.4.GIT