[patch] Initialize padding in gdb.base/relocate.c
Daniel Jacobowitz
drow@false.org
Sun Feb 29 02:59:00 GMT 2004
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
More information about the Gdb-patches
mailing list