Subject: Re: compat_solaris
To: None <port-sparc64@netbsd.org>
From: Christos Zoulas <christos@tac.gw.com>
List: port-sparc64
Date: 02/06/2005 19:06:08
In article <a8fea4f204c5de58333f8812579f85cf@earthlink.net>,
Michael  <macallan18@earthlink.net> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hello,
>
>after digging around a bit more I found where the loader barfs - it's 
>in sys/kern/exec_elf32.c
>ELFNAME(check_header)
>it bails because opera's eh->e_shnum is 15850 which is significantly 
>larger than 1024.
>So - what's the purpose of this field in the ELF header? Why bail if 
>it's >1024?
>Sorry, my knowledge of the ELF standard is next to nonexistent.
>
>have fun
>Michael

The point is not to have random binaries DOS the kernel by allocating
too much memory. I will make that bigger.

christos