From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34EEEC433EF for ; Tue, 28 Sep 2021 15:45:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 04E5661206 for ; Tue, 28 Sep 2021 15:45:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 04E5661206 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=479EbpOpmnzkvw4/uh/OqusbcV/PRzsuj3v/0NnvMDs=; b=uSLg5eHo/HVkel 8tF1Qb2oAGxanJimmt1E8BULLhXMAO2VgCJYu2bDUUvAM8p/SWtr9Gpgbe2WNYENPqJBM06xdF/ED m4ElpVCkVFsFf2u9d5KsZKF9y3yxFwrHccpLtIaul8sQwMoxHjmngijdE7fKVK577Z8kEL+3gMaHe lZhzisQ03k3NJwKqzeFqvuzkgoayvli8qHISTnkMgRSj+SlpYlVK0HVj9RC5tLIbKg9oDGv21QP6m G1dZUfAHkZaYOERUrS/opuHplKn7dUSY48dNk1WOrSqj6jHXbdC13Dh2KM7pHVyGQ09MJpzwkZISS f8S5TwtDNsu+SxHxL1Ew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFGy-007oms-BV; Tue, 28 Sep 2021 15:44:00 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFFG-007o9F-1k for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 15:42:15 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4B4061206; Tue, 28 Sep 2021 15:42:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843733; bh=YUTkeqO15Fma8yWD34z1Lh7SHxgvyx1Y5p/CZcT9xhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mgQ0sRJdNp3fuetg6bKoMk21ysseY9OodqNAVvrxVtT4YvKwyDQ/p4XURIpEPS9Hh AL3PMlSNzbChQSXiG1Aw5p/5y/xxdRSK7Xv3TXi6wHAXlzvUe2nTzr9tKM2EkQzXxI N2kOlOZM1Ua3IPmx6EvGijVfUZB9OycIWURi/HlA7JI+fWJJ6OWpU69wywJhrIOgFa +Wg1EVnKLReT1qnbM2lHAQt07X0D8623UumIgdaLSZqOZTJarUkfw9iZ/2nIpWMRmu ZPIVqcq6B2UtI5+frU+0IICl6NZFVRNQv2Tckg+tWHpgkKxd3Oc4PBoCcYkgtdrApq aREcHDV9GQ7ug== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev, Kees Cook Subject: [PATCH 07/14] ARM: fix link warning with XIP + frame-pointer Date: Tue, 28 Sep 2021 17:41:36 +0200 Message-Id: <20210928154143.2106903-8-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210928154143.2106903-1-arnd@kernel.org> References: <20210928154143.2106903-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210928_084214_181275_4F76E274 X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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") Reviewed-by: Kees Cook 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 50136828f5b5..e0c00986487f 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -40,6 +40,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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel