2011-04-09 Kai Tietz <ktietz@redhat.com>

* peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
        buffer and use rawsize for sorting.
        * coffcode.h (coff_compute_section_file_positions): Set rawsize
        before doing alignment.
This commit is contained in:
Kai Tietz 2011-04-09 16:06:00 +00:00
parent bb95161d33
commit 21e68916ef
4 changed files with 26 additions and 9 deletions

View file

@ -3297,6 +3297,8 @@ coff_compute_section_file_positions (bfd * abfd)
if (!(current->flags & SEC_HAS_CONTENTS))
continue;
current->rawsize = current->size;
#ifdef COFF_IMAGE_WITH_PE
/* Make sure we skip empty sections in a PE image. */
if (current->size == 0)
@ -3363,7 +3365,7 @@ coff_compute_section_file_positions (bfd * abfd)
#ifdef COFF_IMAGE_WITH_PE
/* Set the padded size. */
current->size = (current->size + page_size -1) & -page_size;
current->size = (current->size + page_size - 1) & -page_size;
#endif
sofar += current->size;