diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1998-10-16 03:45:35 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1998-10-16 03:45:35 +0000 |
| commit | df481e793ff16f23517c70c8ff42884d16ca7fb9 (patch) | |
| tree | 63d020f3411674cbc5195c6b5663a0aa9e11fdc2 /sys | |
| parent | 08a04a898540606ee4c0ecf0ead4f69aef8ad01f (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/link_aout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/link_aout.c b/sys/kern/link_aout.c index e92fee081171..80e9e1f5ffd0 100644 --- a/sys/kern/link_aout.c +++ b/sys/kern/link_aout.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: link_aout.c,v 1.12 1998/09/11 08:45:32 dfr Exp $ + * $Id: link_aout.c,v 1.13 1998/10/09 23:49:28 peter Exp $ */ #ifndef __alpha__ @@ -108,6 +108,7 @@ link_aout_init(void* arg) af = malloc(sizeof(struct aout_file), M_LINKER, M_NOWAIT); if (af == NULL) panic("link_aout_init: Can't create linker structures for kernel"); + bzero(af, sizeof(*af)); af->address = 0; af->dynamic = dp; @@ -150,6 +151,7 @@ link_aout_load_module(const char* filename, linker_file_t* result) /* Looks like we can handle this one */ af = malloc(sizeof(struct aout_file), M_LINKER, M_WAITOK); + bzero(af, sizeof(*af)); af->address = baseptr; /* Assume _DYNAMIC is the first data item. */ @@ -216,6 +218,7 @@ link_aout_load_file(const char* filename, linker_file_t* result) * We have an a.out file, so make some space to read it in. */ af = malloc(sizeof(struct aout_file), M_LINKER, M_WAITOK); + bzero(af, sizeof(*af)); af->address = malloc(header.a_text + header.a_data + header.a_bss, M_LINKER, M_WAITOK); |
