From mboxrd@z Thu Jan 1 00:00:00 1970 From: newsham@lava.net (Tim Newsham) Date: Sun, 4 May 2008 14:00:27 -1000 (HST) Subject: [Unix-jun72] 0407 binaries on 1ed In-Reply-To: <20080504223353.GA63333@minnie.tuhs.org> References: <20080504223353.GA63333@minnie.tuhs.org> Message-ID: > Excellent stuff Tim. I've had a quick look; I suspect the existing code: > > cmp r5,u.count / > bgt 1f / branch if r5 greater than u.count > mov r5,u.count > > checks to ensure that the new a.out is small emough to fit into the > address space left by the executable that called exec(2). Right, but after it branches it goes ahead and reads anyway(!?) Thats the part that confused me.. perhaps there's a line or two missing somewhere in the code here? > Warren Tim Newsham http://www.thenewsh.com/~newsham/