Revert the last checkin on sec_merge_emit.

2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>

	* merge.c (sec_merge_emit): Revert the last checkin.
This commit is contained in:
H.J. Lu 2010-08-20 22:29:28 +00:00
parent d820eaae5f
commit 3409e291c1
2 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
* merge.c (sec_merge_emit): Revert the last checkin.
2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
* elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output

View file

@ -307,9 +307,6 @@ sec_merge_emit (bfd *abfd, struct sec_merge_hash_entry *entry)
len = -off & (entry->alignment - 1);
if (len != 0)
{
/* We should never have an entry with an alignment
greater than the section's alignment. */
BFD_ASSERT (len <= (bfd_size_type) (1 << alignment_power));
if (bfd_bwrite (pad, len, abfd) != len)
goto err;
off += len;
@ -327,7 +324,6 @@ sec_merge_emit (bfd *abfd, struct sec_merge_hash_entry *entry)
/* Trailing alignment needed? */
off = sec->size - off;
if (off != 0
&& alignment_power
&& bfd_bwrite (pad, off, abfd) != off)
goto err;