static linking is broken
I was trying to build supermin which needs to build a static binary.
Reduced test case:
$ cat test.c
#include <stdio.h>
int main(void) { return 0; }
$ gcc -static test.c -o static
$ file static
static: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, with debug_info, not stripped
Note: tested on Alpine 3.9 but I didn’t managed to find it in the Affected versions field.
(from redmine: issue id 10030, created on 2019-02-23)