* merge.c (merge_strings): Round up section size for alignment.
This commit is contained in:
parent
ee9d5ee534
commit
8699aa54a2
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-04-14 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* merge.c (merge_strings): Round up section size for alignment.
|
||||||
|
|
||||||
2005-04-14 David S. Miller <davem@davemloft.net>
|
2005-04-14 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
Add TLS support for 64-bit Sparc ELF.
|
Add TLS support for 64-bit Sparc ELF.
|
||||||
|
|
|
@ -656,6 +656,11 @@ alloc_failure:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
secinfo->sec->size = size;
|
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)
|
/* And now adjust the rest, removing them from the chain (but not hashtable)
|
||||||
at the same time. */
|
at the same time. */
|
||||||
|
|
Loading…
Reference in a new issue