# HG changeset patch # User Richard M. Stallman # Date 835646078 0 # Node ID a01d40110af0dad8f1f0547c1ffa207c5a3cb31b # Parent 8763ff3f9ee3d9a6676a15e9b4854e53751ed965 (unexec): Round up section header offset to bss alignment before deciding whether it's after the bss section. diff -r 8763ff3f9ee3 -r a01d40110af0 src/unexelf.c --- a/src/unexelf.c Mon Jun 24 16:59:49 1996 +0000 +++ b/src/unexelf.c Mon Jun 24 19:54:38 1996 +0000 @@ -767,7 +767,9 @@ >= 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