diff options
Diffstat (limited to 'src')
| -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 799052baf52..341147a576d 100644 --- a/src/unexelf.c +++ b/src/unexelf.c | |||
| @@ -799,7 +799,9 @@ unexec (new_name, old_name, data_start, bss_start, entry_address) | |||
| 799 | if (n < 0) | 799 | if (n < 0) |
| 800 | fatal ("Couldn't find segment next to .bss in %s\n", old_name, 0); | 800 | fatal ("Couldn't find segment next to .bss in %s\n", old_name, 0); |
| 801 | 801 | ||
| 802 | NEW_PROGRAM_H (n).p_filesz += new_data2_size; | 802 | /* Make sure that the size includes any padding before the old .bss |
| 803 | section. */ | ||
| 804 | NEW_PROGRAM_H (n).p_filesz = new_bss_addr - NEW_PROGRAM_H (n).p_vaddr; | ||
| 803 | NEW_PROGRAM_H (n).p_memsz = NEW_PROGRAM_H (n).p_filesz; | 805 | NEW_PROGRAM_H (n).p_memsz = NEW_PROGRAM_H (n).p_filesz; |
| 804 | 806 | ||
| 805 | #if 0 /* Maybe allow section after data2 - does this ever happen? */ | 807 | #if 0 /* Maybe allow section after data2 - does this ever happen? */ |