This is the mail archive of the
mailing list for the binutils project.
Re: gas: Question about .cfi_startproc and nested labels
- From: Martin Galvan <martin dot galvan at tallertechnologies dot com>
- To: Jan Beulich <JBeulich at suse dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 17 Nov 2014 09:57:29 -0300
- Subject: Re: gas: Question about .cfi_startproc and nested labels
- Authentication-results: sourceware.org; auth=none
- References: <CAOKbPbapLucqZDJfr6Bu0DdV8HZQxiZPAfF0ki8V_oGqs97vxw at mail dot gmail dot com> <5469D4C60200007800048507 at mail dot emea dot novell dot com> <CAOKbPba4AFQ0bZ=ZXqbYO-O0Aro9JxYFTXLwQY=doH8g-LkzhA at mail dot gmail dot com> <5469FE52020000780004866D at mail dot emea dot novell dot com>
On Mon, Nov 17, 2014 at 9:55 AM, Jan Beulich <JBeulich@suse.com> wrote:
>>>> On 17.11.14 at 13:45, <email@example.com> wrote:
>> Thanks a lot for your answer! One more question: what happens if I
>> call .cfi_restore_state without having called .cfi_remember_state
>> first? I've seen a couple of places where people seem to be doing
>> that, but I'm not sure of what the results would be.
> I'd expect gas to not accept this, but even if it does it'll produce
> data the unwinder can't use - what state should it restore when
> none was saved?
Indeed, it wouldn't make sense as the implicit stack would be empty.
I'll check the code again, perhaps I missed a remember_state.
Taller Technologies Argentina
San Lorenzo 47, 3rd Floor, Office 5
Phone: 54 351 4217888 / +54 351 4218211