This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: faq regarding
- To: Michael Sokolov <msokolov at ivan dot Harhan dot ORG>
- Subject: Re: faq regarding
- From: Ivan Pulleyn <ivan at torpid dot com>
- Date: Fri, 15 Sep 2000 13:31:17 -0500 (CDT)
- cc: binutils at sourceware dot cygnus dot com
On Fri, 15 Sep 2000, Michael Sokolov wrote:
>
> There are no problems except that it's a plain waste. Why do you want this
> behavior? .bss is an array of zeros or random garbage, why do you want to store
> it on disk and read it from there?
>
I just wanted to know the size of .bss somehow. Now I see that I can
do something like:
movl $end, %eax
to determine the end of the kernel image, given that I have defined
$end in the linker script. Now I can start allocating dynamic memory
after $end and not worry that I'm trashing .bss.
Thanks for your help,
Ivan...
---------------------------------------------------------------------------
Ivan Pulleyn
4942 N. Winchester Ave. #3
Chicago, IL 60640
ivan@torpid.com
(847) 980-1400
---------------------------------------------------------------------------