From 9f08fa5c12890bd9e5609910bfd89903b0dcde25 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 17 Oct 2015 20:01:15 +1030 Subject: [PATCH] Correct powerpc64le __glink_PLTresolve .eh_frame FDE * elf64-ppc.c (ppc64_elf_size_stubs): Correct __glink_PLTresolve eh_frame FDE for ELFv1. --- bfd/ChangeLog | 5 +++++ bfd/elf64-ppc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d3715949f36..06be2d97e8e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2015-10-17 Alan Modra + + * elf64-ppc.c (ppc64_elf_size_stubs): Correct __glink_PLTresolve + eh_frame FDE for ELFv1. + 2015-10-16 H.J. Lu * elf32-i386.c (elf_i386_convert_mov_to_lea): Check if symbol diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index e5344df446b..cda8e592cd8 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -12583,7 +12583,7 @@ ppc64_elf_size_stubs (struct bfd_link_info *info) *p++ = DW_CFA_advance_loc + 1; *p++ = DW_CFA_register; *p++ = 65; - *p++ = 12; + *p++ = htab->opd_abi ? 12 : 0; *p++ = DW_CFA_advance_loc + 4; *p++ = DW_CFA_restore_extended; *p++ = 65; -- 2.30.2