Subject: CVS commit: syssrc/sys/lib/libsa
To: None <source-changes@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: source-changes
Date: 08/01/2001 01:11:58
Module Name:	syssrc
Committed By:	bjh21
Date:		Tue Jul 31 22:11:58 UTC 2001

Modified Files:
	syssrc/sys/lib/libsa: loadfile.c

Log Message:
When loading ELF, zero out:
The e_shstrndx field in the ELF header, since we don't load .shstrtab.
The sh_name field in each section header, for the same reason.
The sh_offset field for any section we don't load.

This means the kernel has some chance of knowing what it's being given.  It
also means that the behaviour of old kernels with new loaders should be
deterministic (if not terribly useful: they still can't find the symbol
table).


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 syssrc/sys/lib/libsa/loadfile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.