This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: faq regarding


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]