when resolving symbols with only weak defs, use first def, not last def
[musl] / src / stdio / getw.c
1 #include <stdio.h>
2
3 int getw(FILE *f)
4 {
5         int x;
6         return fread(&x, sizeof x, 1, f) ? x : EOF;
7 }