Hi,
I've pushed a small patch that enables weak function symbols:
http://repo.or.cz/w/tinycc.git/commitdiff/95b9a477b6743004e0e9bf728b25bf63d2908777?hp=d63ec6f20dc7e29e266589458ea90fb56f8c86ea
As an example, examples/ex_weak.c uses a function declared as weak
(from examples/weak_f.c).
Before this patch, compiling ex_weak.c without weak_f.c before it
results in an undefined symbol error.
With this patch, it works as expected.
However, it doesn't work for variables, only functions. Any pointers?
Furthermore it crashes the test suite: