1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-30 11:09:23 +00:00

(unexec): Check for section names end and edata with no underscore.

This commit is contained in:
Richard M. Stallman 1998-08-10 02:35:54 +00:00
parent 952cad8980
commit 2e1ddb87df

View File

@ -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));
}