Make SH ucontext always match current kernels

Mike Frysinger vapier@gentoo.org
Tue Nov 15 20:48:00 GMT 2016


On 07 Nov 2016 23:18, Joseph Myers wrote:
> As discussed in the thread starting at
> <https://sourceware.org/ml/libc-alpha/2015-06/msg00657.html>, there
> are various problems with the sigcontext / mcontext / ucontext
> structures on SH.  The soft-float SH4 case in fact does not build at
> present, with errors processing
> sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym with gen-as-const.awk
> ("error: 'mcontext_t {aka struct <anonymous>}' has no member named
> 'fpregs'").
> 
> Linux 4.8 (commit bbe6c77857c38f4acbdc4fc70399515226d1859a) moved to
> always using the same sigcontext structure on SH, with room for
> floating-point registers whether or not present on the processor.
> This patch makes the glibc header match.
> 
> Tested (compilation only) for sh4-linux-gnu hard float, and in
> conjunction with other fixes for soft float.

lgtm
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20161115/8cb146d4/attachment.sig>


More information about the Libc-alpha mailing list