diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-08-10 02:35:54 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-08-10 02:35:54 +0000 |
commit | 2e1ddb87dfa035f85608277f8fdbc3f6e6bfe4f6 (patch) | |
tree | 2e46f05808d80165793cb8f54fc646024030db83 /src/unexelf.c | |
parent | 952cad898009bb7ea31319b80ce35f527faef58b (diff) | |
download | emacs-2e1ddb87dfa035f85608277f8fdbc3f6e6bfe4f6.tar.gz |
(unexec): Check for section names end and edata with no underscore.
Diffstat (limited to 'src/unexelf.c')
-rw-r--r-- | src/unexelf.c | 4 |
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)); } |