Module Name: src Committed By: mrg Date: Tue Jul 25 06:43:03 UTC 2017
Modified Files: src/external/gpl3/binutils/usr.sbin/mdsetimage: bin_bfd.c Log Message: initialise some stack variables to zero so that later checking ensures they are considered "unfound" instead of some random value. part 1 in fixing the CI20 kernel build. this one actually will cause the build to fail, but it's outputting broken objects right now anyway. part 2 coming up in the CI20 configuration itself. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \ src/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c diff -u src/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c:1.1 src/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c:1.2 --- src/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c:1.1 Wed Sep 21 21:52:26 2016 +++ src/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c Tue Jul 25 06:43:03 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: bin_bfd.c,v 1.1 2016/09/21 21:52:26 christos Exp $ */ +/* $NetBSD: bin_bfd.c,v 1.2 2017/07/25 06:43:03 mrg Exp $ */ /* * Copyright (c) 1996, 2002 Christopher G. Demetriou @@ -34,7 +34,7 @@ #endif #include <sys/cdefs.h> -__RCSID("$NetBSD: bin_bfd.c,v 1.1 2016/09/21 21:52:26 christos Exp $"); +__RCSID("$NetBSD: bin_bfd.c,v 1.2 2017/07/25 06:43:03 mrg Exp $"); #include <stdio.h> #include <string.h> @@ -75,6 +75,8 @@ bin_find_md_root(void *bin, const char * size_t offset; } *s, symbols[3]; + symbols[0].offset = 0; + symbols[1].offset = 0; symbols[0].name = root_name; symbols[1].name = size_name; symbols[2].name = NULL;