[RFA] Update OpenBSD/mips64 support

Richard Henderson rth@redhat.com
Thu Apr 14 01:24:00 GMT 2005
On Thu, Apr 14, 2005 at 12:48:30AM +0200, Mark Kettenis wrote:
>    n32 is 32-bit pointers and 64-bit registers. 64-bit registers are
>    required. It's also a heck of a lot faster than n64 :)
> 
> And a bit of a security nightmare if you have a 64-bit kernel...

I wouldn't say that.  Think of it as merely a 64-bit application that
Just So Happens to only use the low 31 bits.

The only thing the kernel needs to do is for mmap (0, ...) choose an
address in the low 32 bits.  For everything else, the application will
provide a correct value or its broken and will suffer the consequences.

Unlike o32, you don't have to sign or zero-extend syscall arguments at
kernel entry points, because the application will have already done
that because of how n32 passes 32-bit arguments.

But it's not like I'm going to work on it, so feel free to ignore me.


r~



More information about the Binutils mailing list