This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


2011-07-01  Ian Lance Taylor  <>

	* 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]