Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2002 20:13:09 -0500
From:      Jonah Sherman <jsherman@stuy.edu>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Assembly and ELF
Message-ID:  <20021123011309.GA145@haxb0x>
In-Reply-To: <3D9FE7F600006860@cpfe5.be.tisc.dk>
References:  <3D9FE7F600006860@cpfe5.be.tisc.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021123011309.GA145>