diff options
author | Alan Modra <amodra@gmail.com> | 2011-10-10 09:05:41 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-10-10 09:05:41 +0000 |
commit | bd518033e94e94717505ba617c9cc46beebffde8 (patch) | |
tree | fc38e836c3269e295da6b31200609462c2e74a1b /ld/emultempl/ppc64elf.em | |
parent | gdb/ (diff) | |
download | binutils-gdb-bd518033e94e94717505ba617c9cc46beebffde8.tar.gz binutils-gdb-bd518033e94e94717505ba617c9cc46beebffde8.tar.bz2 binutils-gdb-bd518033e94e94717505ba617c9cc46beebffde8.zip |
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/ppc64elf.em')
-rw-r--r-- | ld/emultempl/ppc64elf.em | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index 9df85c4dfc7..0a49c5ba4cf 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; |