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:
parent
952cad8980
commit
2e1ddb87df
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user