Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3163428pxb; Tue, 12 Jan 2021 07:50:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5q0DOGzw6mItspyA7Jh44dqmuyfBsq0gttwTtk2XtVZTZ3wthPQhoMbo2jNXjHYvXYMO+ X-Received: by 2002:a05:6402:27d1:: with SMTP id c17mr1765836ede.109.1610466620811; Tue, 12 Jan 2021 07:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610466620; cv=none; d=google.com; s=arc-20160816; b=KkXWnpAD7hj0nBchpVIOCB6yUPN+AAttIVPqAxalGwQzW9sk1MW/JLJqsgqkFtXdVb jtZm9SytO3B0JJtzoxsR8ir4Sp3lbkFxVsSn+yFGUsREvv+YblI5Bc1Bfd/Q4BCulJxL fAnkJIQBcYVwhSxRkJu5Sp0WUl/KHYH1zqchvA+ihP5oaAeJG+5ra1KCHC+c4rrxuaPo DFmGIePVvVy8JkhUTZeF3AtAFLZV2+EcR8ZAoGfBOmCROV4D1QRI2EieAKyQ9FXFlOqJ 1CFFMtEz9oo+xJw3UFOf6SsbLmtdJboyHIfN+zHWCgLO6gUWBgAjvE5WSLXoSJe2hsuA JSZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eYOzZNhzpiBd42+jhcDJ6zUjMhpte827aBAt4rwZeK8=; b=FsT+Y05JB+pBq7OXJtBhP4ALOSMTPl7SGhsU3PiQ2LRnvZXbykUT3gU8eXNqEBD9wd 3AXzwVJiaUFogtzCMCwcwWKoUlOj55iNPaiZSjhs7TMBE8ivPOAAcNrMwew9lRyEZZ6V zDaz8TIAY8BNjODw+szzaxt1OJS/sBSxEmf2sOf9Cc3oe19BUIhEiLXjcRW8HGXKyuCD 4xnLt0RiwYBEenVXdwH9aZ0TpIcxI1XKDxUL4oMOjxLNiHcxAUkPvYU/+c5SbK326mqX 650G/Sdtyi4CEJTrWXKOkquG8m+JwvcwZ2Qezi/oLdGp5sBWeRsC9ylABsJeTIItdLBq VYOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nB+GV/Ao"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si1257262ejr.643.2021.01.12.07.49.56; Tue, 12 Jan 2021 07:50:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nB+GV/Ao"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404546AbhALPro (ORCPT + 99 others); Tue, 12 Jan 2021 10:47:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:44854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391909AbhALPrn (ORCPT ); Tue, 12 Jan 2021 10:47:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 50F622312F; Tue, 12 Jan 2021 15:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610466423; bh=q+Pofp8jRp2xcjOfvDsfHdXfGkS6TiOxj2EkcvZcE/Q=; h=From:To:Cc:Subject:Date:From; b=nB+GV/Ao2FJGa2/qsd2aioGTA73tsL+Fy/ISjrGuCxwlH3VH2Dptb5oF/HLziXRZv 0A/cNKn9jDxot8d7A1iO9c5LtFQ2Wk5Fy57NM4dDhtMqG8L7c5hLrdXeYk0mSIr4GG F6xbxhfqw3a+mKXEZjQTMEcwZM+Fug8Mpus8ZWb3eVd1SQ6XgUEpIoHwBkjUAvbpMr hCaQMpC5KNeTRkGN6AqE9X+EvnCRaGhCiIwdZH4c3osj8yWXfGrrzpcu7p40dPo3n1 2ZQqpWsI6Q5XNMJ7Os++Lt4j5/craDsVmER3KFWEqsu098FZKF+qhMoaP/xBvutnyY sIgydXBZWPbgw== From: Arnd Bergmann To: Russell King , Nathan Chancellor , Nick Desaulniers , Kees Cook Cc: Arnd Bergmann , Catalin Marinas , Vladimir Murzin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] ARM: fix link warning with XIP + frame-pointer Date: Tue, 12 Jan 2021 16:46:40 +0100 Message-Id: <20210112154658.850192-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann When frame pointers are used instead of the ARM unwinder, and the kernel is built using clang with an external assembler and CONFIG_XIP_KERNEL, every file produces two warnings like: arm-linux-gnueabi-ld: warning: orphan section `.ARM.extab' from `net/mac802154/util.o' being placed in section `.ARM.extab' arm-linux-gnueabi-ld: warning: orphan section `.ARM.exidx' from `net/mac802154/util.o' being placed in section `.ARM.exidx' The same fix was already merged for the normal (non-XIP) linker script, with a longer description. Fixes: c39866f268f8 ("arm/build: Always handle .ARM.exidx and .ARM.extab sections") Signed-off-by: Arnd Bergmann --- arch/arm/kernel/vmlinux-xip.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index 4d0b0cd9222e..ddb70c65d525 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -43,6 +43,10 @@ SECTIONS ARM_DISCARD *(.alt.smp.init) *(.pv_table) +#ifndef CONFIG_ARM_UNWIND + *(.ARM.exidx) *(.ARM.exidx.*) + *(.ARM.extab) *(.ARM.extab.*) +#endif } . = XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR); -- 2.29.2