From nobody Tue Feb 10 20:14:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1523390133927743.0692678566517; Tue, 10 Apr 2018 12:55:33 -0700 (PDT) Received: from localhost ([::1]:40134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5zMa-0006Cs-7L for importer@patchew.org; Tue, 10 Apr 2018 15:55:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z7C-0000Kw-6j for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5z7B-0006RV-3K for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:38 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:56055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5z7A-0006Qi-T7 for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:37 -0400 Received: by mail-wm0-x244.google.com with SMTP id b127so28590110wmf.5 for ; Tue, 10 Apr 2018 12:39:36 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d28sm2894899wra.37.2018.04.10.12.39.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 12:39:28 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 6DBC43E0BBC; Tue, 10 Apr 2018 20:39:20 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VZHJFI2Z/kEHQnIs5xsn5HSO5K/+tvRWixcGwYN0iX8=; b=h8198SdvMoyGn4jzm4baGYZdW0blXusAGqd9Hy+luFxDPEN4OQDbaUnXEMJyV4cpQX eOHWhY4zLJev0kRJqIFD+41dwkF0AyLmspVfWhbxhzjUDOPKTDsX5C/F6qqz7RZSfMQj Qkl8me0pcSycOfloIsLWUQtzEYxPSV2d3+Fio= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VZHJFI2Z/kEHQnIs5xsn5HSO5K/+tvRWixcGwYN0iX8=; b=M+OeYVYB4jOWkfaY1AqEQ7CnWyFvbLMFfdeyk6Pzu0vDI6Z5hd/uBUm8c1RmayhsMH bfIIS08W+tl5SYrsXpbwPQ1xlNlH76KIoGanCEnkQr97//Cfh/riEBJg2ixPjD+tFE++ nceJEUuXf1RBml1BRT4DtCIO/xLyAeVjanf+peEznX5Bq4sznZrwOYGKP5zzzNbL5K+4 4r1iNjE+vcuC1ZOV9obKYtWR0GPKE6MhLfWGI+T3pruWpGjb6/nFZkGMe63hRlqyzHPb qIGlKH9GW9qBSekMaurjDo0vKEyi+13oDeZuxeQ/VnDHaPKJB24oxmxSadv5bkyDhcVH 7ovg== X-Gm-Message-State: ALQs6tBq++3flcYpfYbdANWyZx1IwOpLaU8EB2pJTrzbzYLaY7xz55qz j3J3gCr94zbvlCMqYiqrKsY+pg== X-Google-Smtp-Source: AIpwx4/TfkZ9OS7vPqXDs16SpxYLIpQLY3qXCfJWoEMePuejKwjBzA9f8OdxHqGbZn4U1JfxakVqXQ== X-Received: by 10.28.105.19 with SMTP id e19mr558350wmc.3.1523389172861; Tue, 10 Apr 2018 12:39:32 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 20:39:09 +0100 Message-Id: <20180410193919.28026-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180410193919.28026-1-alex.bennee@linaro.org> References: <20180410193919.28026-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v1 14/24] tests/tcg/i386: fix test-i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , famz@redhat.com, cota@braap.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 The test-i386 test case is a little special as it includes assembler files. Add the additional compile magic to assemble these bits and link them to the final binary. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Tested-by: Philippe Mathieu-Daud=C3=A9 --- tests/tcg/i386/Makefile.target | 19 +++++++++++++++++++ tests/tcg/i386/test-i386.c | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 7dbb7992e7..1df69e0dab 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -8,3 +8,22 @@ ifdef CROSS_CC_GUEST_CFLAGS CFLAGS+=3D$(CROSS_CC_GUEST_CFLAGS) endif endif + +# +# test-386 includes a couple of additional objects that need to be linked = together +# + +TEST_I386_DEPS=3Dtest-i386-code16.o test-i386-vm86.o + +# override the default compile and link in one go rule +test-i386.o: test-i386.c + $(CC) $(CFLAGS) -c $< -o $@ + +# and provide a rule to compile .S files +%.o: %.S + $(CC) $(CFLAGS) -c $< -o $@ + +test-i386: LDFLAGS+=3D-lm -lc +test-i386: test-i386.o $(TEST_I386_DEPS) + $(LD) -melf_i386 $(LDFLAGS) $< $(TEST_I386_DEPS) -o $@ + diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index 9599204895..cae6a7773a 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -17,7 +17,6 @@ * along with this program; if not, see . */ #define _GNU_SOURCE -#include "qemu/compiler.h" #include #include #include --=20 2.16.2