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:
parent
bb95161d33
commit
21e68916ef
4 changed files with 26 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue