mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user