John Anthony Kazos Jr. wrote: >> I think you may not get this right: this is from GCC man : If the target >> supports a BSS section, GCC by default puts variables that are initialized >> to zero into BSS. This can save space in the resulting code. > > But that's exactly what I'm saying. The kernel-hacking guides say that all > static (internal-linkage) variables are placed in the bss section. The gcc > docs say that all variables initialized to zero are placed in the bss > section. > > What I'm asking is, wouldn't that mean that a static variable initialized > to zero would be placed in the bss section, since it meets both those > conditions? no, kernel-hacking guides say you should not initialize it *explicitly*, because gcc have done that you for *implicitly* already. -- -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ