summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/relocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/relocate.c')
-rw-r--r--gdb/testsuite/gdb.base/relocate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/relocate.c b/gdb/testsuite/gdb.base/relocate.c
index d2023920fb4..df8545dc62e 100644
--- a/gdb/testsuite/gdb.base/relocate.c
+++ b/gdb/testsuite/gdb.base/relocate.c
@@ -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;