Subject: Re: compat_solaris
To: Christos Zoulas <christos@tac.gw.com>
From: Michael <macallan18@earthlink.net>
List: port-sparc64
Date: 02/06/2005 21:54:55
-----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.
>
> The point is not to have random binaries DOS the kernel by allocating
> too much memory. I will make that bigger.

Ok, the Opera 7.54 binary has ~17000 sections. For some reason it dumps 
core when showing the main GUI, the 8.0 Beta sort of works, but all the 
graphics are badly distorted.

So this begs a few questions about Solaris compatibility:
Does networking actually work? Solaris' ftp crashes on startup and 
Opera doesn't even attempt to connect to anything.
Communication with the Xserver seems flaky at least - some simple 
things like xterm works, but Opera... well, primitives like lines, 
rectangles and text are mostly ok, but everything that involves 
(rendering) graphics looks totally wrong. I'm not sure what could be 
the cause, it tried to load librender.so, maybe it got the NetBSD lib - 
I'm pretty sure Sun's Xserver doesn't have XRender.
Then I tried to run it chroot'ed to /emul/svr4_32 but then it couldn't 
connect to the Xserver, not even when I set DISPLAY to 127.0.0.1:0.0 so 
I guess sockets don't work properly for some reason.
Are these known problems or am I missing something?

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBQgbYf8pnzkX8Yg2nAQLQ1wf/eTgFA8JiKlLQPpWLiyUIkCKdTCMEfl0d
fWI0mieSYgwi9+0vlz5PPfO9gr01OcYp4A3ujg3oQlZHZ2IzPUrSXc12Ce4Tp/Ql
eBEb5sLSP+0r3KuFbtkuty+HszXsnnWXuHGMi2YbI8d3Y26vwfqN7G6h7JYddwxD
wZRR3EiBe9hBvcZJMkLac5HI7UH15g70yJNJFFw2peM8+cVze8nzESWMUydCw209
5KiwRy9HPr17Je1oG2OtZ9MVIty8TksWgNN6lTmQob7bjUicDzn2MqhHMmopObDA
3y7rvGaYuDHYXdzUUeYNXqQODnBgAeun1sHRhA6X7+fPznbcMUJeFw==
=IzKh
-----END PGP SIGNATURE-----