* elf32-spu.c (spu_elf_size_stubs): Correct section alignment.
authorAlan Modra <amodra@gmail.com>
Tue, 4 Dec 2007 03:29:43 +0000 (03:29 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 4 Dec 2007 03:29:43 +0000 (03:29 +0000)
bfd/ChangeLog
bfd/elf32-spu.c

index c10e1a551e33e9c9f00cfa04b759e3925ca2695f..547b7580f38a75f8bce4212251f9643fd7d897c5 100644 (file)
@@ -1,3 +1,7 @@
+2007-12-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_size_stubs): Correct section alignment.
+
 2007-11-30  Richard Sandiford  <rsandifo@nildram.co.uk>
 
        * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use the
index 3ca236793caa62fc12b1e1dc89ac8b7462732680..7da9cb69606973a2272e71d344ecbebdc52292ae 100644 (file)
@@ -1083,7 +1083,7 @@ spu_elf_size_stubs (bfd *output_bfd,
   htab->stub = bfd_make_section_anyway_with_flags (ibfd, ".stub", flags);
   *stub = htab->stub;
   if (htab->stub == NULL
-      || !bfd_set_section_alignment (ibfd, htab->stub, 2))
+      || !bfd_set_section_alignment (ibfd, htab->stub, 4))
     return FALSE;
 
   flags = (SEC_ALLOC | SEC_LOAD
@@ -1091,7 +1091,7 @@ spu_elf_size_stubs (bfd *output_bfd,
   htab->ovtab = bfd_make_section_anyway_with_flags (ibfd, ".ovtab", flags);
   *ovtab = htab->ovtab;
   if (htab->ovtab == NULL
-      || !bfd_set_section_alignment (ibfd, htab->stub, 4))
+      || !bfd_set_section_alignment (ibfd, htab->ovtab, 4))
     return FALSE;
 
   *toe = bfd_make_section_anyway_with_flags (ibfd, ".toe", SEC_ALLOC);