Mercurial > emacs
comparison src/unexelf.c @ 15504:a01d40110af0
(unexec): Round up section header offset to bss alignment
before deciding whether it's after the bss section.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 24 Jun 1996 19:54:38 +0000 |
parents | e98682eae98b |
children | 8978d34759dc |
comparison
equal
deleted
inserted
replaced
15503:8763ff3f9ee3 | 15504:a01d40110af0 |
---|---|
765 Erik Deumens, deumens@qtp.ufl.edu. */ | 765 Erik Deumens, deumens@qtp.ufl.edu. */ |
766 if (NEW_SECTION_H (nn).sh_offset | 766 if (NEW_SECTION_H (nn).sh_offset |
767 >= OLD_SECTION_H (old_bss_index-1).sh_offset) | 767 >= OLD_SECTION_H (old_bss_index-1).sh_offset) |
768 NEW_SECTION_H (nn).sh_offset += new_data2_size; | 768 NEW_SECTION_H (nn).sh_offset += new_data2_size; |
769 #else | 769 #else |
770 if (NEW_SECTION_H (nn).sh_offset >= new_data2_offset) | 770 if (round_up (NEW_SECTION_H (nn).sh_offset, |
771 OLD_SECTION_H (old_bss_index).sh_addralign) | |
772 >= new_data2_offset) | |
771 NEW_SECTION_H (nn).sh_offset += new_data2_size; | 773 NEW_SECTION_H (nn).sh_offset += new_data2_size; |
772 #endif | 774 #endif |
773 /* Any section that was originally placed after the section | 775 /* Any section that was originally placed after the section |
774 header table should now be off by the size of one section | 776 header table should now be off by the size of one section |
775 header table entry. */ | 777 header table entry. */ |