Default values of "struct item *items[MAX_ITEMS]" array?
Daniel Jacobowitz
drow@false.org
Mon May 17 03:49:00 GMT 2004
On Fri, May 14, 2004 at 08:55:27AM -0700, Joe Buck wrote:
> On Fri, May 14, 2004 at 10:54:38AM +0200, Andriy Korud wrote:
> > It seems to be compiler/optimization problem - the same kernel compiled with 2.95.4 works fine, however code compiles with 3.x fails.
> > Maybe compiler optimization just throws away kernel bss zeroing code?
>
> There is no "bss zeroing code" generated by either compiler.
> The problem must lie elsewhere.
FYI, the most frequent cause of "my .bss didn't get zeroed" reports is
when a newer compiler generates .sbss instead, confusing the boot
loader / module loader / dynamic linker / whatever for the target
platform. That's what this sounds like.
--
Daniel Jacobowitz
More information about the Gcc
mailing list