From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Up1gg-0004Ee-30 for qemu-devel@nongnu.org; Tue, 18 Jun 2013 15:35:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Up1gd-00027d-FB for qemu-devel@nongnu.org; Tue, 18 Jun 2013 15:35:30 -0400 Received: from mail-ve0-x230.google.com ([2607:f8b0:400c:c01::230]:47204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Up1gd-00027X-Bk for qemu-devel@nongnu.org; Tue, 18 Jun 2013 15:35:27 -0400 Received: by mail-ve0-f176.google.com with SMTP id c13so3467999vea.35 for ; Tue, 18 Jun 2013 12:35:26 -0700 (PDT) Sender: Richard Henderson Message-ID: <51C0B679.3050701@twiddle.net> Date: Tue, 18 Jun 2013 12:35:21 -0700 From: Richard Henderson MIME-Version: 1.0 References: <51C04671.8090305@msgid.tls.msk.ru> In-Reply-To: <51C04671.8090305@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] RFC: DSO (dynamic shared objects) support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-devel On 06/18/2013 04:37 AM, Michael Tokarev wrote: > First of all, we need a global config switch/check for this kind of > service. On a POSIX system this should make the executable to be > linked with -rdynamic option, in order to make all symbols in the > executable to be available to plugins. The only way you're going to be able to make this work with windows dlls (and, frankly, a better way to make this work in elf without -export-dynamic), is to make the "main" part of qemu itself a shared library, so that the modules can link against it. This reduces the qemu executable to, more or less, _start +/- main. r~