public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* BFD patch committed: Correct PLT unwind expression
@ 2011-07-01 22:16 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2011-07-01 22:16 UTC (permalink / raw)
  To: binutils; +Cc: jakub

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

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.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 618 bytes --]

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
 };
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-01 22:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-01 22:16 BFD patch committed: Correct PLT unwind expression Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).