We support 32-bit variants of GOT and PC-relative relocations, but not the 64-bit variants: R_X86_64_(GOTPC64|GOTOFF64|GOT64|PC64).
Reproducer:
#!/usr/bin/env bash
cat >1.c <<\EOF
#include <stdio.h>
int u ;
int main() {
u = 11;
printf("u: %d\n", u);
return 0;
}
EOF
musl-clang -o 1.o 1.c -c -ffunction-sections -static -mcmodel=large
LD=eld musl-clang -o 1.eld.out 1.o -static