|
From: | Herman ten Brugge |
Subject: | Re: [Tinycc-devel] Segfault when using '-static' |
Date: | Thu, 26 May 2022 16:03:37 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 |
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 working on openbsd 7.1 (only tried x86_64). Herman On 5/26/22 07:21, Arthur Williams wrote:
So noticed that I can no longer build static packages with tcc. ``` $ cat test.c int main(){return 0;} $./tcc -static test.c Segmentation fault ``` I ran through git-bisect and concluded the regression was introduced in 4c82b003420fabbb95e077866784badc1a49189b: Update for elflint problems. Simply reverting the commit allows the above example to not error. Any objection to just reverting the offending commit. - Arthur
[Prev in Thread] | Current Thread | [Next in Thread] |