Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!wupost!uunet!enterpoop.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!raeburn From: raeburn@athena.mit.edu (Ken Raeburn) Subject: Re: At boot: file too big to load In-Reply-To: julian@tfs.com's message of Mon, 23 Nov 1992 07:02:12 GMT Message-ID: <RAEBURN.92Dec1174219@tweedledumb.cygnus.com> Sender: news@athena.mit.edu (News system) Nntp-Posting-Host: cambridge.cygnus.com Organization: Cygnus Support, Cambridge MA References: <1992Nov22.225044.1344@ghost.dsi.unimi.it> <1992Nov23.070212.9393@tfs.com> Date: Tue, 1 Dec 1992 22:42:31 GMT Lines: 16 In article <1992Nov23.070212.9393@tfs.com> julian@tfs.com (Julian Elischer) writes: In article <1992Nov22.225044.1344@ghost.dsi.unimi.it> serini@ghost.dsi.unimi.it (Piero Serini) writes: >if(roundup(x.a_text, 4096) + x.a_data + x.a_bss > (unsigned)&fil) { > printf("File too big to load"); > return; >} don't forget the zero filled section is not in the file, it just bzeros it. Doesn't the kernel bzero its own bss section on startup? Is there a reason the boot code has to take the bss into account? (Other than that you might want to boot some other program that doesn't clear its bss, I mean.) -- ~ Ken Raeburn preferred: raeburn@cygnus.com also: raeburn@mit.edu ~ ~ Cygnus Support, One Kendall Square, Cambridge MA 02139 USA ~ 617-494-1040 ~