This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
BFD patch committed: Correct PLT unwind expression
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Cc: jakub at redhat dot com
- Date: Fri, 01 Jul 2011 15:16:02 -0700
- Subject: BFD patch committed: Correct PLT unwind expression
While working on the PLT unwind information for gold, I noticed a minor
error in the unwind information for GNU ld for i386. This patch fixes
the problem. Tested with the ld testsuite and the test in PR 12570.
Committed to mainline.
Ian
2011-07-01 Ian Lance Taylor <iant@google.com>
* elf32-i386.c (elf_i386_eh_frame_plt): Correct expression: change
DW_OP_lit3 to DW_OP_lit2.
Index: elf32-i386.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-i386.c,v
retrieving revision 1.256
diff -u -p -r1.256 elf32-i386.c
--- elf32-i386.c 25 Jun 2011 00:43:15 -0000 1.256
+++ elf32-i386.c 1 Jul 2011 22:14:34 -0000
@@ -610,7 +610,7 @@ static const bfd_byte elf_i386_eh_frame_
DW_OP_breg4, 4, /* DW_OP_breg4 (esp): 4 */
DW_OP_breg8, 0, /* DW_OP_breg8 (eip): 0 */
DW_OP_lit15, DW_OP_and, DW_OP_lit11, DW_OP_ge,
- DW_OP_lit3, DW_OP_shl, DW_OP_plus,
+ DW_OP_lit2, DW_OP_shl, DW_OP_plus,
DW_CFA_nop, DW_CFA_nop, DW_CFA_nop, DW_CFA_nop
};