Re: [Tinycc-devel] Segfault when using '-static'

2022-05-26 Thread Herman ten Brugge via Tinycc-devel
Yes. The relocations that are missing are TLS relocations. On other targets functions are missing that are in libgcc.a which is only present in local gcc directory. These functions must be implemented in libtcc to let -static work.     Herman On 5/26/22 17:13, Christian Jullien wrote: Just curi

Re: [Tinycc-devel] Segfault when using '-static'

2022-05-26 Thread Christian Jullien
Just curious, When you say "All failed..." Is it the consequence of Rpi32 tcc: error: Unknown relocation type for got: 107 Rpi64 tcc: error: Unknown relocation type for got: 313 On macOS, issue is different (and logic AFAIK) tcc: error: library 'c' not found tcc: error: undefined symbol '_free'

Re: [Tinycc-devel] Segfault when using '-static'

2022-05-26 Thread Herman ten Brugge via Tinycc-devel
I fixed the core dump problem but still cannot use -static on any platform. The problem is that TLS support is needed that is not implemented. I tried x86-64, i386, rasperry pi 32 and 64, riscv64 and macos, freebsd, netbsd. All failed for me because of missing TLS support. I only got this wor