NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53465: ld.elf_so crashes when memcpy obj->tlsinit data

Now I have a simple c file to reproduce the problem:
#include <stdio.h>

_Thread_local int a = 1;

int main(int argc, char *argv[])
        printf("run ok\n");
        return 0;
Use the following to compile:
gcc -o ld-test -fPIE -pie ../src/_pstatd/ld_test.c
The run ld-test, you will get the crash.

Home | Main Index | Thread Index | Old Index