static linking is broken
ncdev:/testcase$ cat h.c
#include <stdio.h>
int main(void) { return 0; }
ncdev:/testcase$ gcc -static h.c
ncdev:~/testcase$ ./a.out
Segmentation fault
I am not sure when it was introduced but it only affects edge and not v2.3.0
(from redmine: issue id 855, created on 2011-12-05, closed on 2012-01-05)
- Changesets:
- Revision bfc02e31 by Timo Teräs on 2011-12-09T07:28:48Z:
main/binutils: fix static linking on PIE
The linker script mistakenly assumess crtbegin, or crtbegin? for
the gcc crt glue filename. On PIE system it is called crtbeginTS
which would not match the filter. Fixes #855.