This is the mail archive of the
mailing list for the binutils project.
Re: faq regarding
- To: ivan at torpid dot com
- Subject: Re: faq regarding
- From: msokolov at ivan dot Harhan dot ORG (Michael Sokolov)
- Date: Fri, 15 Sep 00 13:18:26 CDT
- Cc: binutils at sourceware dot cygnus dot com
Ivan Pulleyn <email@example.com> wrote:
> 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.
You've got it! That's exactly how it's done.
Michael Sokolov Harhan Engineering Laboratory
Public Service Agent International Free Computing Task Force
International Engineering and Science Task Force
615 N GOOD LATIMER EXPY STE #4
DALLAS TX 75204-5852 USA
Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)