This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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]

Re: [PATCH v2] ARM: Add SystemTap probes to longjmp and setjmp.


On 7 February 2014 15:27, Jonathan S. Shapiro <shap@eros-os.org> wrote:

> Yes. The layout of jmp_buf is part of the ABI. And not just the libc ABI,
> but for some platforms it's part of the platform standard (e.g. SVID
> specifies it). In consequence, changing the structure layout isn't an option
> in either the current libc release or any foreseeable future libc release.
> The patch point needs to be reworked so as to operate given the current
> structure layout.

The layout has changed in previous releases so I am not convinced this is true.

> On the bright side, reworking the code to fit the current layout means that
> (a) this can be integrated sooner, and (b) we don't have to accept a small
> regression in GDB functionality in order to implement encrypted pointers.

The GDB functionality regression is orthogonal to the layout change.
The gdb issue is caused by the fact that the saved lr in the jmp_buf
is now no longer a straightforward code pointer. The longjmp SystemTap
probe added by this patch unencrypts lr and hands it to gdb so gdb can
set a break there.

-- 
Will Newton
Toolchain Working Group, Linaro


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