aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-10-17 20:01:15 +1030
committerAlan Modra <amodra@gmail.com>2015-10-17 20:17:58 +1030
commit9f08fa5c12890bd9e5609910bfd89903b0dcde25 (patch)
tree45686ceaaa615a22fef016987e7587130b07177f
parent0716a48d498253d45bc0f3b3b8c7dbe026283763 (diff)
downloadgdb-9f08fa5c12890bd9e5609910bfd89903b0dcde25.zip
gdb-9f08fa5c12890bd9e5609910bfd89903b0dcde25.tar.gz
gdb-9f08fa5c12890bd9e5609910bfd89903b0dcde25.tar.bz2
Correct powerpc64le __glink_PLTresolve .eh_frame FDE
* elf64-ppc.c (ppc64_elf_size_stubs): Correct __glink_PLTresolve eh_frame FDE for ELFv1.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-ppc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d371594..06be2d9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index e5344df..cda8e59 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;