summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-08-10 02:35:54 +0000
committerRichard M. Stallman <rms@gnu.org>1998-08-10 02:35:54 +0000
commit3102e772e954eafa6a4ebfa9eff7d5dc2be82fa5 (patch)
treea60e697fe6ef3c6c2c2e097c579866d503f525a6
parentb716cf309579ee1eab4fcc4dab79dfb020174ad7 (diff)
downloademacs-3102e772e954eafa6a4ebfa9eff7d5dc2be82fa5.tar.gz
(unexec): Check for section names end and edata with no underscore.
-rw-r--r--src/unexelf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unexelf.c b/src/unexelf.c
index 75961656073..0e70ac116b1 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -1068,7 +1068,9 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
for (; symp < symendp; symp ++)
if (strcmp ((char *) (symnames + symp->st_name), "_end") == 0
- || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0)
+ || strcmp ((char *) (symnames + symp->st_name), "end") == 0
+ || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0
+ || strcmp ((char *) (symnames + symp->st_name), "edata") == 0)
memcpy (&symp->st_value, &new_bss_addr, sizeof (new_bss_addr));
}