On Fri, Jan 29, 2021 at 09:48:42AM -0500, Philippe Meunier wrote: > Philippe Meunier wrote: > >Is there some kind of limitation on the size of an ELF executable that can > >be executed on i386? I mean, in addition to the limits in /etc/login.conf? > > When using readelf(1) on the chrome executable from > chromium-81.0.4044.138.tgz from OpenBSD 6.7-release i386 packages, I get: > > Section Headers: > [Nr] Name Type Addr Off Size ES Flg Lk Inf > Al > [...] > [15] .text PROGBITS 0230d000 230d000 7bda799 00 AX 0 0 > 64 > > 7bda799 is 129869721 which is 123.8 MB. > > On the chrome executable from chromium-85.0.4183.121.tgz from OpenBSD > 6.8-release i386 packages, I get: > > Section Headers: > [Nr] Name Type Addr Off Size ES Flg Lk Inf > Al > [...] > [15] .text PROGBITS 02412c00 2411c00 83b048b 00 AX 0 0 > 64 > > 83b048b is 138085515 which is 131.7 MB. > > Is there somewhere a 128 MB limit for ELF sections on i386, or something > along those lines? > > Philippe
MAXTSIZ is 128 MB on i386 see sys/arch/i386/include/vmparam.h
