aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pie
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-02-23 22:23:26 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-02-23 22:23:26 +0000
commit7dd61ce72a17979656ebd1897be2af86362744c0 (patch)
tree797a21a67deb98cd77625427d09f759b5d3da6d0 /ld/testsuite/ld-pie
parent59cf82fe74db7b9fdf47bcf089a4fd301b067ea5 (diff)
downloadgdb-7dd61ce72a17979656ebd1897be2af86362744c0.zip
gdb-7dd61ce72a17979656ebd1897be2af86362744c0.tar.gz
gdb-7dd61ce72a17979656ebd1897be2af86362744c0.tar.bz2
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* ld-pie/weakundef-data.c: Fix the typo.
Diffstat (limited to 'ld/testsuite/ld-pie')
-rw-r--r--ld/testsuite/ld-pie/weakundef-data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-pie/weakundef-data.c b/ld/testsuite/ld-pie/weakundef-data.c
index 0d0f162..af411bc 100644
--- a/ld/testsuite/ld-pie/weakundef-data.c
+++ b/ld/testsuite/ld-pie/weakundef-data.c
@@ -2,8 +2,8 @@
#pragma weak undef_data
-extern int undef_data (void);
-int (*ptr_to_data)(void) = undef_data;
+extern int undef_data;
+int *ptr_to_data = &undef_data;
int
main (void)