aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-10-10 09:05:41 +0000
committerAlan Modra <amodra@gmail.com>2011-10-10 09:05:41 +0000
commitbd518033e94e94717505ba617c9cc46beebffde8 (patch)
treefc38e836c3269e295da6b31200609462c2e74a1b /ld/emultempl
parent6501578cfe95e4a0db9f37305c7f25c1fd383929 (diff)
downloadgdb-bd518033e94e94717505ba617c9cc46beebffde8.zip
gdb-bd518033e94e94717505ba617c9cc46beebffde8.tar.gz
gdb-bd518033e94e94717505ba617c9cc46beebffde8.tar.bz2
ld/
* emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes. ld/testsuite/ * ld-powerpc/relbrlt.d: Update for stub alignment change. * ld-powerpc/tlsexe.g: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsexetoc.g: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsso.r: Likewise.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/ppc64elf.em3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index 9df85c4..0a49c5b 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -378,7 +378,8 @@ ppc_add_stub_section (const char *stub_sec_name, asection *input_section)
| SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_KEEP);
stub_sec = bfd_make_section_anyway_with_flags (stub_file->the_bfd,
stub_sec_name, flags);
- if (stub_sec == NULL)
+ if (stub_sec == NULL
+ || !bfd_set_section_alignment (stub_file->the_bfd, stub_sec, 5))
goto err_ret;
output_section = input_section->output_section;