On Apr 21, 2013, at 2:15 AM, David Laight <da...@l8s.co.uk> wrote: > On Sat, Apr 20, 2013 at 02:17:17PM -0700, Matt Thomas wrote: >> >> On Apr 20, 2013, at 11:04 AM, Christos Zoulas <chris...@netbsd.org> wrote: >> >>> Module Name: src >>> Committed By: christos >>> Date: Sat Apr 20 18:04:41 UTC 2013 >>> >>> Modified Files: >>> src/sys/kern: kern_exec.c >>> >>> Log Message: >>> don't attempt to load elf64 on 32 bit machines >> >> if the load address doesn't fit in 4GB. >> >> I've run elf64(n64) on mips n32 kernel with no problems. > > Isn't an n32 kernel a 64bit one that uses 32bit pointers? > A little unusual. > > Doesn't that require a COMPAT_64 layer in the kernel? > Since user pointers will be 64bit and kernel ones only 32.
I cheated and used objcopy to convert a N32 binary to N64.