diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/uthread/uthread_autoinit.c | 5 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_autoinit.c | 5 |
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; |