From owner-freebsd-hackers Fri Nov 22 17: 5:13 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 618B437B404 for ; Fri, 22 Nov 2002 17:05:11 -0800 (PST) Received: from smtp020.tiscali.dk (smtp020.tiscali.dk [212.54.64.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BFEE43E9C for ; Fri, 22 Nov 2002 17:05:10 -0800 (PST) (envelope-from dslb@tiscali.dk) Received: from cpmail.dk.tiscali.com ([212.54.64.52]) by smtp020.tiscali.dk (8.12.5/8.12.5) with ESMTP id gAN14jmL026733 for ; Sat, 23 Nov 2002 02:05:03 +0100 (MET) Received: from [213.237.112.252] by cpmail.dk.tiscali.com with HTTP; Sat, 23 Nov 2002 02:05:03 +0100 Date: Sat, 23 Nov 2002 02:05:03 +0100 Message-ID: <3D9FE7F600006860@cpfe5.be.tisc.dk> From: dslb@tiscali.dk Subject: Re: Assembly and ELF To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable 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 OK, I have read some more now and will ask a few questions. If I am askin= g 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 =3D 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 happe= ns: 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 stri= ngs 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