Subject: Re: compat_solaris
To: Martin Husemann <martin@duskware.de>
From: Michael <macallan18@earthlink.net>
List: port-sparc64
Date: 02/06/2005 20:42:54
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

>> it bails because opera's eh->e_shnum is 15850 which is significantly
>> larger than 1024.
>
> See elf(5):
>
>      e_shnum      The number of entries in the section header table, 
> or 0 if
>                   none exists.
Just found the same reading the source :)

>> So - what's the purpose of this field in the ELF header? Why bail if
>> it's >1024?
>
> You should take this to tech-kern, I guess. The number of section 
> headers
> typically is something like 25, readelf -S tells you about them, maybe 
> we
> can guess from the output for opera why a program would be linked that 
> way.
Hmm, objdump lists indeed >15000 section headers on the opera binary.

> I guess the kernel check for 1024 is just an arbitrary sanity check - 
> and
> maybe it needs to be lifted or removed.
I set the limit to 16000 and now it works - sort of. The GUI looks 
totally screwed but that's another problem.

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

iQEVAwUBQgbHnspnzkX8Yg2nAQKb2wgAhUHC00k74btM4J8R2orYMdsghxfIZMX6
8uLSxifrgqT326HsdoiQRew8kMcLHqm+PHa/KYPRhZZXCz+Oy/7LROOeMCMBNhpx
JjXpOdkVmpthEwLJH2gc/zzB5MbhXQDnTkLgqJaYOELqen1NA1Eix/pOzkuUTwTO
ZfHZ8lf0GSKHHJtspiyB/RumfiD2pxrVyYdTRIxWxmPKhnczWK+xOeo3x8nOmYDW
xrEArP9T+vfJue7u1AFoaV+Fe51DurGWIikA1CMa8xTLqWQMBn8KxJhIK7cfrdee
FRX3tUOpK187PsLoUHr2jdq37cOBDqp8gGYFK1qmEG5RMuyWf5uHdQ==
=M62H
-----END PGP SIGNATURE-----