summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2011-04-09 16:05:58 +0000
committerKai Tietz <kai.tietz@onevision.com>2011-04-09 16:05:58 +0000
commit1cafbaf10ee11d9e9eb6c3bd92fd9bcbc29001bf (patch)
tree22e759dc9124dad49a455eb6c464277b2dba305b /bfd/coffcode.h
parent1ee7d54cce1395409f7ec28486f91d037d10c139 (diff)
downloadbinutils-redhat-1cafbaf10ee11d9e9eb6c3bd92fd9bcbc29001bf.tar.gz
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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 6ee3db90e5..9db86b5be6 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;