From owner-freebsd-hackers Mon Nov 25 13:27:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A2A337B408 for ; Mon, 25 Nov 2002 13:27:44 -0800 (PST) Received: from theearthis.mine.nu (24-90-200-150.nyc.rr.com [24.90.200.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DA1443EBE for ; Mon, 25 Nov 2002 13:27:43 -0800 (PST) (envelope-from jonah@theearthis.mine.nu) Received: by theearthis.mine.nu (Postfix, from userid 1000) id 46E2A443; Fri, 22 Nov 2002 20:13:09 -0500 (EST) Date: Fri, 22 Nov 2002 20:13:09 -0500 From: Jonah Sherman To: freebsd-hackers@freebsd.org Subject: Re: Assembly and ELF Message-ID: <20021123011309.GA145@haxb0x> Reply-To: Jonah Sherman Mail-Followup-To: freebsd-hackers@freebsd.org References: <3D9FE7F600006860@cpfe5.be.tisc.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D9FE7F600006860@cpfe5.be.tisc.dk> User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I suggest you read "The Design and Implementation of the 4.4BSD Operating System". It will answer most if not all of your questions. On Sat, Nov 23, 2002 at 02:05:03AM +0100, dslb@tiscali.dk wrote: > OK, I have read some more now and will ask a few questions. If I am asking > the wrong place, please say so. > 1. If have found part of what I am looking for: > http://www.cs.ucdavis.edu/~haungs/paper/node14.html#sections > But I need more info (in depth info). Is .bss = the heap? > > 2. I would like more info about the FreeBSD program loader. I would like > to know what happens when you load a program, what is put in the ram. I > have come by a short list: > Fist .text > Then .data > Last the stack. > But I would really like to know more about how FreeBSD use these, what is > else there (in the ram)? > > 3. I also read that when a buffer is overflowed, it is because this happens: > a) The system make room in the stack for the buffer > b) The buffer is overwritten. > What I don't understand is why the stack is being use to store whole strings > in (I understand that it is used to store addresses of string and other > data). Why doesn't the program/system write to .data? > > Hope someone can help me with these questions. > > br > socketd > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message