aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/prelink.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/prelink.c')
-rw-r--r--gdb/testsuite/gdb.base/prelink.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/prelink.c b/gdb/testsuite/gdb.base/prelink.c
index 115dc1f..96c1bb9 100644
--- a/gdb/testsuite/gdb.base/prelink.c
+++ b/gdb/testsuite/gdb.base/prelink.c
@@ -18,6 +18,11 @@
#include <stdio.h>
+extern int copyreloc;
+
+/* Test GDB itself finds `&bssvar' right. */
+static int bssvar, *bssvarp = &bssvar;
+
extern void (*h (void)) (void (*)(void));
int
@@ -25,5 +30,6 @@ main (void)
{
void (*f) (void (*)(void)) = h ();
printf ("%p\n", f);
+ printf ("%d\n", copyreloc);
f (0);
}