aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2011-04-09 16:06:00 +0000
committerKai Tietz <kai.tietz@onevision.com>2011-04-09 16:06:00 +0000
commit21e68916eff030cf3afb94dbf2e9962ceca25000 (patch)
tree1e6e9fe2a7338d28161ef7b9a3e2986489055ea8 /bfd/coffcode.h
parentbb95161d33dc43843fd502a4ea7448ff40d7d355 (diff)
downloadgdb-21e68916eff030cf3afb94dbf2e9962ceca25000.zip
gdb-21e68916eff030cf3afb94dbf2e9962ceca25000.tar.gz
gdb-21e68916eff030cf3afb94dbf2e9962ceca25000.tar.bz2
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 6ee3db9..9db86b5 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;