libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libunwind] libunwind and .savepsp


From: James E Wilson
Subject: Re: [libunwind] libunwind and .savepsp
Date: Thu, 16 Sep 2004 11:26:20 -0700

On Wed, 2004-09-15 at 04:05, David Mosberger wrote:
> Jim, HJ, do you agree?

Yes, I agree that this is a gas bug.

The assembler manual states that the offset is (psp - pspoff), and the
SCRA in Appendix B states that the encoded offset is (psp + 16 - (4 *
pspoff).  So the assembler must translate.

The docs do appear a little ambiguous, because the encoded form of the
offset is clearly stated in the descriptions of the P7 and P8 unwind
record formats, but it is not stated at all for the X1 and X3 unwind
record formats.  I see the unwind dumping code in readelf that you wrote
treats X1 and X3 same as P7 and P8, so I have done the same for gas.

Here is an untested patch that works for the given testcase.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

Attachment: patch.psp.offset
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]