Re: [Qemu-devel] [PATCH v5 2/9] make: ensure all members of libqemuutil.a are linked

2015-08-26 Thread Daniel P. Berrange
On Wed, Aug 26, 2015 at 09:25:39AM -0600, Eric Blake wrote: > On 08/26/2015 09:05 AM, Daniel P. Berrange wrote: > > The libqemuutil.a archive may contain QOM objects which are > > only indirectly referenced via __attribute__((constructor)) > > annotations. Despite the constructor annotation the lin

Re: [Qemu-devel] [PATCH v5 2/9] make: ensure all members of libqemuutil.a are linked

2015-08-26 Thread Eric Blake
On 08/26/2015 09:05 AM, Daniel P. Berrange wrote: > The libqemuutil.a archive may contain QOM objects which are > only indirectly referenced via __attribute__((constructor)) > annotations. Despite the constructor annotation the linker > will think these objects are unused by the executable and > so

[Qemu-devel] [PATCH v5 2/9] make: ensure all members of libqemuutil.a are linked

2015-08-26 Thread Daniel P. Berrange
The libqemuutil.a archive may contain QOM objects which are only indirectly referenced via __attribute__((constructor)) annotations. Despite the constructor annotation the linker will think these objects are unused by the executable and so drop them when linking, to the system emulator. As a result