From 2e1ddb87dfa035f85608277f8fdbc3f6e6bfe4f6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 10 Aug 1998 02:35:54 +0000 Subject: [PATCH] (unexec): Check for section names end and edata with no underscore. --- src/unexelf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } -- 2.39.2