From b8e22491470f07db7ac37a4140c33b417c4fd7ac Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 4 Dec 2007 03:29:43 +0000 Subject: [PATCH] * elf32-spu.c (spu_elf_size_stubs): Correct section alignment. --- bfd/ChangeLog | 4 ++++ bfd/elf32-spu.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c10e1a551e3..547b7580f38 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2007-12-04 Alan Modra + + * elf32-spu.c (spu_elf_size_stubs): Correct section alignment. + 2007-11-30 Richard Sandiford * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use the diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 3ca236793ca..7da9cb69606 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -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); -- 2.30.2