[Top][All Lists]

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

Re: [Qemu-devel] [RFC] Introduce module API to QEMU

From: Avi Kivity
Subject: Re: [Qemu-devel] [RFC] Introduce module API to QEMU
Date: Fri, 03 Apr 2009 10:50:15 +0300
User-agent: Thunderbird (X11/20090320)

Anthony Liguori wrote:
It uses __attribute__((section)) to make module_init/module_exit work.  I looked
at making this work by using a parser to find and extract all of these things.
I'm not sure I know a good way to force the names to be unique via CPP but in
the very least, I came to the determination that I would need to use something
like perl or python which would introduce a new dependency to the build.

I figured using the GCCism was a lesser burden since we don't attempt to support
any compiler other than GCC today.

If we're introducing a gccism, __attribute__((__constructor__)) is a lesser evil IMO, and much more understandable.

I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

reply via email to

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