From nobody Tue Dec 16 02:53:25 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1573032062; cv=none; d=zoho.com; s=zohoarc; b=hxdBb2Ve0SpcldiwNC5JwOrVf0S+TrwSQsZUhhUIil8m9WSBwZXdahAxlBmrzHT4CvuAV6SM7oR64qOODXT8X18bNz3896ZCgT63L5S8N5CYVEyhIBtl+E10cKmqVSuzYk4Iyh+4kejkhFY5YF5X1uQBP8dHE0fuHxDjfA1UMJc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573032062; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/MmcD2C2vP8KJLhmC4Hgw1/skiirJta+ciHOM9A/y3I=; b=hb60t+3Sn1yNTqB/+7s/InF8U66OhDNzOdaWOvuYhsknh/M83d+W1SMRBAJ+rirvgheuJ4PKxtfmkZ+fPb2eNm9WYIroSwWZdSt+8gm3A2RQSur1IeDH4EJ1CIOjdabg6pjHKIGq7NOeCtmg2kroS4oJ/qcM1+jBvGRINf7LO9k= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1573032062623217.7657915750948; Wed, 6 Nov 2019 01:21:02 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iSHTi-0006xR-Cu; Wed, 06 Nov 2019 09:19:50 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iSHTh-0006xD-UI for xen-devel@lists.xenproject.org; Wed, 06 Nov 2019 09:19:49 +0000 Received: from mail-lf1-x142.google.com (unknown [2a00:1450:4864:20::142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 888272fc-0076-11ea-b678-bc764e2007e4; Wed, 06 Nov 2019 09:19:29 +0000 (UTC) Received: by mail-lf1-x142.google.com with SMTP id y6so17476485lfj.2 for ; Wed, 06 Nov 2019 01:19:29 -0800 (PST) Received: from aanisov-work.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id g23sm3945937lja.104.2019.11.06.01.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Nov 2019 01:19:26 -0800 (PST) X-Inumbo-ID: 888272fc-0076-11ea-b678-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=051XW9OjPeed0xS97OPOpuHNYizMGvM3NpFZuAOd2bA=; b=kBg2hJnVWs2KeV57ITQd3crZeispZqLWt4aQXSraZwtFX2E3KGsbSY0fznvsPdUzTT Rax/RkbTm1JY8gEGG1VKOEteQROXbQHHIKXfj7XFukVlrMPLVbd7WZKsKb84T7Vhuucv prGGZG3uGpCW9hRXIfDzfgLyV9pT9W2EV0CmdCnSz4Zq2jivLdyvc9HEsgCO4dwjRmnY CkxEg/g/NQQ228dhbRB8olNnRRSjt26Uevqs8HcUmrsqug7n8q7nESjLnNDS3AxoGMHv DRxAopinuSRaMhSVhDcSGpP/J2q1p2krc0m2Oo370dAsZgwwQA3ew7CD/ikK5HxmUWfi Mg5w== 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; bh=051XW9OjPeed0xS97OPOpuHNYizMGvM3NpFZuAOd2bA=; b=Ru3orZYMqae/ZqqsyIBYbawvjCUjmy5Hx7/dueHq+sF5wDjcNxKYo2N3ex7MFBrUMt yRy9joydMRwN8BdVZUla4/rzrNPIGcEmbgZLsONCPz7BGgmsAQ7gNdxUSmMOe9mFkxW2 yeJg+y1iK6XVwYM9tefupkBKLvfQSBM1fs0DvKmHc03fXDIjv2+eqTJa+6hGZeGzqFpe jM7vOg45hZjFX8UED3rBVnjLqDgyuQgyIv/cPw0GOtTH9c/cu9rwJoLyXGSkeisURzbF KAAH+WHzy5GpYHpZJ38bGtmacmHe+NhoOsyLjbDY725rVz7KN1eJlRMx+aJTF8Cwkfcj yjTQ== X-Gm-Message-State: APjAAAWmh/tmDOMIMEutEALCULH4+b5Q41EQ/Xw1KCPfnIkydU1Xdt8v yz7iFiVqoKp2ZIrtqAF5Mrtaz1Nj5MA= X-Google-Smtp-Source: APXvYqwxFCF7juC5qHSk6BA6fIRYtyr8ZnHUhWcCEH/vHIBdwAGaFoEtSg3sdgWeyyLotHscDttnKA== X-Received: by 2002:a19:cc07:: with SMTP id c7mr24094186lfg.107.1573031967381; Wed, 06 Nov 2019 01:19:27 -0800 (PST) From: Andrii Anisov To: xen-devel@lists.xenproject.org Date: Wed, 6 Nov 2019 11:19:12 +0200 Message-Id: <1573031953-12894-7-git-send-email-andrii.anisov@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573031953-12894-1-git-send-email-andrii.anisov@gmail.com> References: <1573031953-12894-1-git-send-email-andrii.anisov@gmail.com> Subject: [Xen-devel] [RFC 6/7] arm: Introduce dummy empty functions for data only C files X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Daniel De Graaf , Stefano Stabellini , Andrii Anisov , Volodymyr Babchuk MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Andrii Anisov ARM Compiler 6 has a proven bug: it compiles data only C files with SoftVFP attributes. This leads to a failed linkage afterwards with an error: Error: L6242E: Cannot link object built_in.o as its attributes are incompat= ible with the image attributes. ... A64 clashes with SoftVFP. The known workaround is introducing some code into the affected file, e.g. an empty (non-static) function is enough. Signed-off-by: Andrii Anisov --- xen/arch/arm/platforms/brcm-raspberry-pi.c | 2 ++ xen/arch/arm/platforms/thunderx.c | 2 ++ xen/xsm/flask/gen-policy.py | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/xen/arch/arm/platforms/brcm-raspberry-pi.c b/xen/arch/arm/plat= forms/brcm-raspberry-pi.c index b697fa2..7ab1810 100644 --- a/xen/arch/arm/platforms/brcm-raspberry-pi.c +++ b/xen/arch/arm/platforms/brcm-raspberry-pi.c @@ -40,6 +40,8 @@ static const struct dt_device_match rpi4_blacklist_dev[] = __initconst =3D { /* sentinel */ }, }; =20 +void brcm_raspberry_pi_dummy_func(void) {} + PLATFORM_START(rpi4, "Raspberry Pi 4") .compatible =3D rpi4_dt_compat, .blacklist_dev =3D rpi4_blacklist_dev, diff --git a/xen/arch/arm/platforms/thunderx.c b/xen/arch/arm/platforms/thu= nderx.c index 9b32a29..8015323 100644 --- a/xen/arch/arm/platforms/thunderx.c +++ b/xen/arch/arm/platforms/thunderx.c @@ -33,6 +33,8 @@ static const struct dt_device_match thunderx_blacklist_de= v[] __initconst =3D { /* sentinel */ }, }; =20 +void thunderx_dummy_func(void) {} + PLATFORM_START(thunderx, "THUNDERX") .compatible =3D thunderx_dt_compat, .blacklist_dev =3D thunderx_blacklist_dev, diff --git a/xen/xsm/flask/gen-policy.py b/xen/xsm/flask/gen-policy.py index c7501e4..73bf7d2 100644 --- a/xen/xsm/flask/gen-policy.py +++ b/xen/xsm/flask/gen-policy.py @@ -21,3 +21,7 @@ sys.stdout.write(""" }; const unsigned int __initconst xsm_flask_init_policy_size =3D %d; """ % policy_size) + +sys.stdout.write(""" +void policy_dummy_func(void) {} +""") --=20 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel