summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1998-12-21 07:45:13 +0000
committerDavid Leonard <d@cvs.openbsd.org>1998-12-21 07:45:13 +0000
commit0c6d2e95c92c40573878f74275b2e425e727b076 (patch)
tree9cbbe6f00bb01dc106d1c9571c3597e2c3f1b4b4 /lib
parent9376fbf9ff76484a62daa8c832b035ca99980c16 (diff)
add variable to force linkage
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/uthread/uthread_autoinit.c5
-rw-r--r--lib/libpthread/uthread/uthread_autoinit.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_autoinit.c b/lib/libc_r/uthread/uthread_autoinit.c
index 6cebea471ac..0fdf5ca58e9 100644
--- a/lib/libc_r/uthread/uthread_autoinit.c
+++ b/lib/libc_r/uthread/uthread_autoinit.c
@@ -51,3 +51,8 @@ _thread_init_constructor()
}
#endif /* GNU C */
+/*
+ * Dummy symbol referenced by uthread_init.o so this compilation unit
+ * is always loaded.
+ */
+int _thread_autoinit_hook = 0;
diff --git a/lib/libpthread/uthread/uthread_autoinit.c b/lib/libpthread/uthread/uthread_autoinit.c
index 6cebea471ac..0fdf5ca58e9 100644
--- a/lib/libpthread/uthread/uthread_autoinit.c
+++ b/lib/libpthread/uthread/uthread_autoinit.c
@@ -51,3 +51,8 @@ _thread_init_constructor()
}
#endif /* GNU C */
+/*
+ * Dummy symbol referenced by uthread_init.o so this compilation unit
+ * is always loaded.
+ */
+int _thread_autoinit_hook = 0;