I had a problem with a TLS definition in a shared library.
I created a script (See attachment) to demonstrate this.
When the script is run on x86_64 I get:
./gen_146
tcc: error: unresolved reference to 'extern_tls_short'
tcc: error: unresolved reference to 'extern_tls_float'
and:
./gen_146 -g
./gen_146: line 3: 9037 Segmentation fault ./tcc $1
-Wl,-rpath=. -no-pie -o 146_tls_extern 146_tls_extern.o 146_tls_extern.so
They probably have the same problem.
Looks like a problem in bind_exe_dynsyms?
Herman
./tcc $1 -c tests/tests2/146_tls_extern.c -o 146_tls_extern.o
./tcc $1 -DDEFS tests/tests2/146_tls_extern.c -shared -fPIC -o 146_tls_extern.so
./tcc $1 -Wl,-rpath=. -no-pie -o 146_tls_extern 146_tls_extern.o
146_tls_extern.so
./146_tls_extern
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel