This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Initialize padding in gdb.base/relocate.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]