Re: [PATCH libnftnl] src: restore static array with expression operations

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

 



On 23.03, Laurent Bercot wrote:
> 
>  Here is the first mail I sent to netfilter@.
>  The whole thread can be read at
>  http://comments.gmane.org/gmane.comp.security.firewalls.netfilter.general/47842


Thanks. Seems the reason is that the linker will discard unused
symbols and from its' perspective the contructors are unused.

I tried experimenting with __attribute__((used)) but it doesn't
help.

What does work is using

-Wl,--whole-archive libnftnl.a -Wl,--no-whole-archive

Not sure if we want to take this path, but it seems acceptable to
me.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux