Commit 2e1ddb87 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

parent 952cad89
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment