Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/usr.sbin/mdsetimage initialise some s...
details: https://anonhg.NetBSD.org/src/rev/2ba531618be7
branches: trunk
changeset: 355310:2ba531618be7
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Jul 25 06:43:03 2017 +0000
description:
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.
diffstat:
external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 812d4212851a -r 2ba531618be7 external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c
--- a/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c Tue Jul 25 06:00:17 2017 +0000
+++ b/external/gpl3/binutils/usr.sbin/mdsetimage/bin_bfd.c Tue Jul 25 06:43:03 2017 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index