summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2011-09-28 18:52:48 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2011-09-28 18:52:48 +0000
commitac267d6605c7de5c655b267dba43d0f9d1f714b0 (patch)
treec356d7f26348e37d728da46829bf58990970628c /lib/libpthread
parent80eba229a06b44cd9faea0a0e50856c04468e3dd (diff)
make sure that `references' is not optimized away as it is required for the
static version of pthread. fixes quite a few regression tests. miod@ ok
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c
index 216ce62bef8..05078d5fb3f 100644
--- a/lib/libpthread/uthread/uthread_init.c
+++ b/lib/libpthread/uthread/uthread_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_init.c,v 1.45 2010/06/27 03:14:28 guenther Exp $ */
+/* $OpenBSD: uthread_init.c,v 1.46 2011/09/28 18:52:47 fgsch Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -76,7 +76,7 @@ extern int _thread_autoinit_dummy_decl;
* MUST be in this table. This is necessary to force the proper version to
* be used when linking -static.
*/
-static void *references[] = {
+static void *references[] __used = {
&_exit,
&accept,
&bind,