This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SPU stub section alignment


	* elf32-spu.c (spu_elf_size_stubs): Correct section alignment.

Index: bfd/elf32-spu.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-spu.c,v
retrieving revision 1.24
diff -u -p -r1.24 elf32-spu.c
--- bfd/elf32-spu.c	25 Sep 2007 08:27:39 -0000	1.24
+++ bfd/elf32-spu.c	3 Dec 2007 05:44:43 -0000
@@ -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);

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]