diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-06-24 19:54:38 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-06-24 19:54:38 +0000 |
commit | 0ed2933f708d86391d3c413a9aa8b8d652256b4f (patch) | |
tree | 6ec7877043cca7a151554718185afcc4d23abcac | |
parent | 08525b54089ffa9cd8c905b4360d6aa50c39290f (diff) | |
download | emacs-0ed2933f708d86391d3c413a9aa8b8d652256b4f.tar.gz |
(unexec): Round up section header offset to bss alignment
before deciding whether it's after the bss section.
-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 a63ecf0dbb6..60e82cc6a95 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -767,7 +767,9 @@ unexec (new_name, old_name, data_start, bss_start, entry_address) >= OLD_SECTION_H (old_bss_index-1).sh_offset) NEW_SECTION_H (nn).sh_offset += new_data2_size; #else - if (NEW_SECTION_H (nn).sh_offset >= new_data2_offset) + if (round_up (NEW_SECTION_H (nn).sh_offset, + OLD_SECTION_H (old_bss_index).sh_addralign) + >= new_data2_offset) NEW_SECTION_H (nn).sh_offset += new_data2_size; #endif /* Any section that was originally placed after the section |