tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Weak symbols, take 1


From: grischka
Subject: Re: [Tinycc-devel] Weak symbols, take 1
Date: Sat, 27 Feb 2010 18:55:38 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Manuel Simoni wrote:
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:

Data symbols don't have type.ref set.  That's likely why it crashes
and wouldn't work anyway.

I know that the dllimport attribute works for data.

--- grischka





reply via email to

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