faq regarding

Michael Sokolov msokolov@ivan.Harhan.ORG
Fri Sep 15 11:20:00 GMT 2000


Ivan Pulleyn <ivan@torpid.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)


More information about the Binutils mailing list