tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Crash on static function when compiling with -nostdlib


From: orenwatson
Subject: [Tinycc-devel] Crash on static function when compiling with -nostdlib
Date: Wed, 31 Mar 2021 07:18:48 +0200 (CEST)

the following code, when compiled with tcc -nostdlib caused tcc to segafult
$ cat testcase.c
static void test () {;}
void _start() {;}
$ tcc testcase.c -nostdlib
Segmentation fault (core dumped)
$ tcc -v
tcc version 0.9.27 (x86_64 Linux)

I did some variations and it seems it's just any "static" function definition, causes segfault when compiling without standard library.

---
Oren Watson (he/him)
orenwatson@tutanota.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]