[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: feature request: __attribute__((weak))
From: Iain Hibbert <plunky () rya-online ! net>
Date: 2011-07-29 10:51:47
Message-ID: alpine.NEB.2.00.1107291147440.14145 () galant ! ukfsn ! org
[Download RAW message or body]
On Thu, 28 Jul 2011, Szabolcs Nagy wrote:
> attribute weak is only supported with alias
> with the following code
>
> static void f() {}
> void g() __attribute__((weak, alias("f")));
> void h() __attribute((weak));
> static void *p = h;
>
>
> nm t.o prints
>
> 00000000 t f
> 00000000 W g
> U h
> 00000000 d p
>
> with gcc nm t.o prints
>
> 00000000 t f
> 00000000 W g
> w h
> 00000000 d p
>
> (linux, elf objects, i386, not stripped)
>
> it may worth supporting the plain weak attribute
> if it's not too much extra effort
there is a Jira issue about weak reference support, which I guess needs to
be researched a bit more fully as there are several types
http://pcc.ludd.ltu.se/jira/browse/PCC-362
feel free to add comments there..
iain
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic