[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)
- [Tinycc-devel] Crash on static function when compiling with -nostdlib,
orenwatson <=