This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] Initialize padding in gdb.base/relocate.c
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 28 Feb 2004 21:59:21 -0500
- Subject: Re: [patch] Initialize padding in gdb.base/relocate.c
- References: <20040228175339.GA16396@nevyn.them.org>
On Sat, Feb 28, 2004 at 12:53:39PM -0500, Daniel Jacobowitz wrote:
> The point of the dummy array is to change the addresses of the global
> variables within the data segment. Unfortunately, it was initialized to
> zeros; recent GCC versions will put zero-initialized data in .bss by
> default, thus defeating the point. So just initialize it to something else.
>
> Will commit in a day or two.
> 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
>
> * gdb.base/relocate.c (dummy): Initialize.
I've committed this patch to HEAD and GDB 6.1, after testing on
i386-pc-linux-gnu.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer