linux-mips-fnet
[Top] [All Lists]

Re: Globals not getting initialized

To: "Ralf Baechle" <ralf@uni-koblenz.de>
Subject: Re: Globals not getting initialized
From: "Bradley D. LaRonde" <brad@ltc.com>
Date: Wed, 21 Jul 1999 20:01:01 -0400
Cc: <linuxce-devel@linuxce.org>, <linux-mips@fnet.fr>
>> I'm porting the kernel to a Vadem Clio (Vr4111), and this is happening in
>> the init part of the kernel, before start_kernel.
>>
>> I also duplicated it in a small test app.  I'm pretty sure they are not
>> getting initialized.
>>
>> So who initializes globals?  The bootloader?
>
>Yes, by just loading an initialized chunk of memory from the kernel
>executable.  That is if your loader is ok it should initialize the
>variables automatically without anything specialy having to be done.


It's funny, because they do get initialized properly when I link with the
NetBSD (stand.ldscript) linker script, but not when I link with the
Linux-MIPS linker script (ld.script.little).  It appears that something in
ld.script.llittle is throwing the bootloader (pbsdboot) off.

Regards,
Brad

<Prev in Thread] Current Thread [Next in Thread>