From Kei Sakamoto <sakamoto.kei@renesas.com>:
authorDaniel Jacobowitz <drow@false.org>
Thu, 24 Jul 2003 18:45:43 +0000 (18:45 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 24 Jul 2003 18:45:43 +0000 (18:45 +0000)
* gdb.base/relocate.c (dummy): New padding array.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/relocate.c

index 0ed3db1..1b5595e 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-24  Daniel Jacobowitz  <drow@mvista.com>
+
+       From Kei Sakamoto <sakamoto.kei@renesas.com>:
+       * gdb.base/relocate.c (dummy): New padding array.
+
 2003-07-23  Michael Snyder  <msnyder@redhat.com>
 
        * gdb.base/return2.exp: Don't test long-long return.
index d202392..df8545d 100644 (file)
@@ -1,6 +1,10 @@
 static int static_foo = 1;
 static int static_bar = 2;
 
+/* This padding is just for the benefit of the test harness.  It
+   causes the globals to have different addresses than the functions.  */
+int dummy[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
+
 int global_foo = 3;
 int global_bar = 4;