tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] e41730f11 (tcc -vv: show cross-libtcc1.a correctly (and m


From: Eric Raible
Subject: [Tinycc-devel] e41730f11 (tcc -vv: show cross-libtcc1.a correctly (and more)) broke my libtcc code
Date: Mon, 3 Oct 2022 22:45:00 -0700

Perhaps I was using libtcc incorrectly, but libtcc.h is a bit unclear about it.

The comment for tcc_set_output_type() says:
/* set output type. MUST BE CALLED before any compilation */

In reality, as of e41730f11 that is no longer good enough.
It used to be that tcc_add_symbol() would work if called before
tcc_set_output_type().
After e41730f11 tcc_set_output_type() must be called first in order to
avoid symtab_section==0.

Sure, I can fix this by calling tcc_set_output_type() first, but it
was a regression for my use case.

A more general comment: tcc and the ongoing work is awesome awesome
awesome, THANK YOU!

Thanks - Eric



reply via email to

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