diff options
author | Alan Modra <amodra@gmail.com> | 2005-04-14 00:27:20 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-04-14 00:27:20 +0000 |
commit | 8699aa54a266e568d5c2c59762d64edd96f11211 (patch) | |
tree | d093ac2140699499e9a3820558316862819eaedb /bfd/merge.c | |
parent | ee9d5ee534f9c690875036f5cedf66398b1f1ec9 (diff) | |
download | gdb-8699aa54a266e568d5c2c59762d64edd96f11211.zip gdb-8699aa54a266e568d5c2c59762d64edd96f11211.tar.gz gdb-8699aa54a266e568d5c2c59762d64edd96f11211.tar.bz2 |
* merge.c (merge_strings): Round up section size for alignment.
Diffstat (limited to 'bfd/merge.c')
-rw-r--r-- | bfd/merge.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/merge.c b/bfd/merge.c index 3efbd43..da826c7 100644 --- a/bfd/merge.c +++ b/bfd/merge.c @@ -656,6 +656,11 @@ alloc_failure: } } secinfo->sec->size = size; + if (secinfo->sec->alignment_power != 0) + { + bfd_size_type align = (bfd_size_type) 1 << secinfo->sec->alignment_power; + secinfo->sec->size = (secinfo->sec->size + align - 1) & -align; + } /* And now adjust the rest, removing them from the chain (but not hashtable) at the same time. */ |