aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-12-04 03:29:43 +0000
committerAlan Modra <amodra@gmail.com>2007-12-04 03:29:43 +0000
commitb8e22491470f07db7ac37a4140c33b417c4fd7ac (patch)
tree2c85e70c2f1d1c1dbe7092f571e8c2bdd761f6f9 /bfd/elf32-spu.c
parent3ae7da37eb46590691808c22bbedb44ce17336e1 (diff)
downloadgdb-b8e22491470f07db7ac37a4140c33b417c4fd7ac.zip
gdb-b8e22491470f07db7ac37a4140c33b417c4fd7ac.tar.gz
gdb-b8e22491470f07db7ac37a4140c33b417c4fd7ac.tar.bz2
* elf32-spu.c (spu_elf_size_stubs): Correct section alignment.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 3ca2367..7da9cb6 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);