From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uovbx-000762-L1 for qemu-devel@nongnu.org; Tue, 18 Jun 2013 09:06:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uovbt-0003e3-1b for qemu-devel@nongnu.org; Tue, 18 Jun 2013 09:06:13 -0400 Received: from mail-yh0-x22e.google.com ([2607:f8b0:4002:c01::22e]:48042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uovbs-0003dy-Tt for qemu-devel@nongnu.org; Tue, 18 Jun 2013 09:06:08 -0400 Received: by mail-yh0-f46.google.com with SMTP id i57so1488712yha.33 for ; Tue, 18 Jun 2013 06:06:08 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <51C05B3A.8080008@redhat.com> Date: Tue, 18 Jun 2013 15:06:02 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <51C04671.8090305@msgid.tls.msk.ru> <51C04D1F.2060504@redhat.com> In-Reply-To: <51C04D1F.2060504@redhat.com> 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: Laszlo Ersek Cc: Michael Tokarev , qemu-devel Il 18/06/2013 14:05, Laszlo Ersek ha scritto: >> > + if (dlopen(path, RTLD_NOW) == NULL) > For inter-module sybmol resolution (motivated by any functional > dependencies, of course), RTLD_GLOBAL would be needed too (and then of > course order of loading would matter). I think we want to prohibit this specifically and use RTLD_LOCAL, at least in the beginning. If you have dependencies, just put them in a single module. As Michael mentioned, this is much simpler than the Linux kernel's module stuff. Paolo