[Top] [All Lists]

Re: Globals not getting initialized

To: "Ralf Baechle" <>
Subject: Re: Globals not getting initialized
From: "Bradley D. LaRonde" <>
Date: Wed, 21 Jul 1999 20:01:01 -0400
Cc: <>, <>
>> 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.


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