Author: arty Date: Thu Jan 11 12:00:30 2007 New Revision: 25424
URL: http://svn.reactos.org/svn/reactos?rev=25424&view=rev Log: Zero other BSS type sections where applicable.
Modified: branches/powerpc/reactos/tools/ppc-build/alink/elf.cpp
Modified: branches/powerpc/reactos/tools/ppc-build/alink/elf.cpp URL: http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/tools/ppc-build/... ============================================================================== --- branches/powerpc/reactos/tools/ppc-build/alink/elf.cpp (original) +++ branches/powerpc/reactos/tools/ppc-build/alink/elf.cpp Thu Jan 11 12:00:30 2007 @@ -429,7 +429,7 @@ seg->winFlags ^= WINF_NEG_FLAGS; seg->datmask.resize(roundup(seg->length,8)/8); seg->data.resize(roundup(seg->length,8)); - if(seg->name == ".bss") + if(elf32shdr[i].sh_type == SHT_NOBITS) { memset(&seg->datmask[0], 0, seg->datmask.size()); memset(&seg->data[0], 0, seg->data.size());