This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Default values of "struct item *items[MAX_ITEMS]" array?


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


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