Xref: utzoo comp.unix.i386:6288 comp.unix.wizards:22671 Path: utzoo!attcan!uunet!isc-br!tau-ceti!cims2!proto!joe From: joe@proto.COM (Joe Huffman) Newsgroups: comp.unix.i386,comp.unix.wizards Subject: Initialization of .BSS question. Keywords: C, C++, Runtime library, Loader, OS Message-ID: <1319@proto.COM> Date: 27 Jun 90 23:27:02 GMT Organization: Prototronics; Sandpoint, Idaho Lines: 22 I am porting the runtime library from a MSDOS compiler to UNIX. Under SCO UNIX (first target) the .BSS segment is initialized to all 0's by the OS (at least prior to the application code getting control). Under MSDOS this was the responsiblity of the startup code. I currently have it removed from the UNIX version but was a bit concerned that under some versions of UNIX it may be necessary to include it. As other discussions have pointed out, it would be a security hole if it were to be left as garbage from other programs. But it could be initialized to something other than 0, assuming that it was the runtime libraries responsibilty to set it to 0. The question is: Are there existing/going-to-be any i386 UNIX's that do not initialize the .BSS section to 0? Email is fine, I don't think this is of particularly wide interest... Thanks. -- joe@proto.com uunet!proto!joe FAX: 208-263-8772