when resolving symbols with only weak defs, use first def, not last def
[musl] / src / internal / libc.c
1 #include "libc.h"
2
3 #ifdef USE_LIBC_ACCESSOR
4 struct __libc *__libc_loc()
5 {
6         static struct __libc __libc;
7         return &__libc;
8 }
9 #else
10 struct __libc __libc;
11 #endif