From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnmt0-0002c4-2l for qemu-devel@nongnu.org; Tue, 03 Dec 2013 05:07:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vnmsv-0007ab-2V for qemu-devel@nongnu.org; Tue, 03 Dec 2013 05:07:22 -0500 Message-ID: <529DA73F.6080904@redhat.com> Date: Tue, 03 Dec 2013 10:41:19 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1385364460-24332-1-git-send-email-aik@ozlabs.ru> <1385364460-24332-3-git-send-email-aik@ozlabs.ru> <529429AA.1000403@ozlabs.ru> <529D5570.8060205@ozlabs.ru> <87fvqaqoxy.fsf@blackfin.pond.sub.org> <529DA51F.1050806@ozlabs.ru> In-Reply-To: <529DA51F.1050806@ozlabs.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: qemu-ppc@nongnu.org, Markus Armbruster , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , qemu-devel@nongnu.org Il 03/12/2013 10:32, Alexey Kardashevskiy ha scritto: >> > Absolutely not. It's merely not portable to machines with object file >> > formats and linkers stuck in the 80s. However, we routinely twist >> > ourselves into knots for portability (observation, not endorsement), and >> > at least one previous attempt[*] to introduce weak symbols got nowhere. >> > >> > [*] https://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg03853.html > > Since that GCC_WEAK patch did not make it to upstream, there must be > another way of fixing my issue :) FWIW, the successor to that patch is the libqemustub.a static library, which is so 1980s but has exactly the same functionality as weak symbols. In your case, you do not even need a stub, I think. Paolo