Correct powerpc64le __glink_PLTresolve .eh_frame FDE
authorAlan Modra <amodra@gmail.com>
Sat, 17 Oct 2015 09:31:15 +0000 (20:01 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 17 Oct 2015 09:47:58 +0000 (20:17 +1030)
* elf64-ppc.c (ppc64_elf_size_stubs): Correct __glink_PLTresolve
eh_frame FDE for ELFv1.

bfd/ChangeLog
bfd/elf64-ppc.c

index d3715949f36b9175be4cee77cba94d33fa1606db..06be2d97e8e39f24c2ff9990421ff65c74c133f7 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-17  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_size_stubs): Correct __glink_PLTresolve
+       eh_frame FDE for ELFv1.
+
 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf32-i386.c (elf_i386_convert_mov_to_lea): Check if symbol
index e5344df446b556b1a54e01c97e726235bab7c07a..cda8e592cd8060336349bd535f292c2c63032a65 100644 (file)
@@ -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;