diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/relocate.c')
-rw-r--r-- | gdb/testsuite/gdb.base/relocate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/relocate.c b/gdb/testsuite/gdb.base/relocate.c index d202392..df8545d 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; |