[Top][All Lists]

[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 (Windows/20090812)

Manuel Simoni wrote:

I've pushed a small patch that enables weak function symbols:


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]