aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-08-10 02:35:54 +0000
committerRichard M. Stallman1998-08-10 02:35:54 +0000
commit2e1ddb87dfa035f85608277f8fdbc3f6e6bfe4f6 (patch)
tree2e46f05808d80165793cb8f54fc646024030db83 /src
parent952cad898009bb7ea31319b80ce35f527faef58b (diff)
downloademacs-2e1ddb87dfa035f85608277f8fdbc3f6e6bfe4f6.tar.gz
emacs-2e1ddb87dfa035f85608277f8fdbc3f6e6bfe4f6.zip
(unexec): Check for section names end and edata with no underscore.
Diffstat (limited to 'src')
-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)
1068 1068
1069 for (; symp < symendp; symp ++) 1069 for (; symp < symendp; symp ++)
1070 if (strcmp ((char *) (symnames + symp->st_name), "_end") == 0 1070 if (strcmp ((char *) (symnames + symp->st_name), "_end") == 0
1071 || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0) 1071 || strcmp ((char *) (symnames + symp->st_name), "end") == 0
1072 || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0
1073 || strcmp ((char *) (symnames + symp->st_name), "edata") == 0)
1072 memcpy (&symp->st_value, &new_bss_addr, sizeof (new_bss_addr)); 1074 memcpy (&symp->st_value, &new_bss_addr, sizeof (new_bss_addr));
1073 } 1075 }
1074 1076