TLS seems to hae broken profiling

Steve Kargl sgk at
Mon Aug 30 15:38:21 PDT 2004

dhcp-78-96:sgk[264] cat > h.c
#include <stdio.h>
int main(void) {
   printf("Hello world.\n");
   return 0;
dhcp-78-96:sgk[265] gcc -o h -O2 h.c
dhcp-78-96:sgk[266] ./h
Hello world.
dhcp-78-96:sgk[267] gcc -o h -O2 -pg h.c
/usr/lib/gcrt1.o(.text+0x65): In function `_start':
: undefined reference to `_init_tls'
collect2: ld returned 1 exit status

Is this a known issues or should I send-pr?


More information about the freebsd-current mailing list