faq regarding
Ivan Pulleyn
ivan@torpid.com
Fri Sep 15 11:16:00 GMT 2000
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
---------------------------------------------------------------------------
More information about the Binutils
mailing list