Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2826426pxb; Mon, 1 Nov 2021 02:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrKyTigpMoOMspc7l/OXeE6lqGnfKho8+io6a0KP4fLD5+8AjOYHtnoxs4mRyNDvOVr7So X-Received: by 2002:a05:6e02:1847:: with SMTP id b7mr18842918ilv.102.1635759463568; Mon, 01 Nov 2021 02:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635759463; cv=none; d=google.com; s=arc-20160816; b=mFPATWC8Ku9oje/5lHT3u+ICd3pyukZmNU+mCDwPxKM1hwvRlWOVzWQpWZH/6WHuH4 ypVdjKFNBMyShVigot3oZ7G/Y6vF82ZeVwQDkjSB6pm71ZiEjUpmnmEAwYbmVBWMeK5Z yXidK0xA2Cvc+pnJ9R0adO62tGHD+tZWcJatClRf/IML10mfDQqBBm6H+MP3iTNzYoDd k85izpCXKh9N37V1zujcpLYL6qsQrf17ZsSm+B5n60t0EjBlXrdN3WUN5+rVE25zt9GS em+ICXQuYL3WUf/CG5szbcgZY9aQ0ZUyYA1r89DnLYkGG4VLCYxHkFfWaTr11SNwnEAL Nj0g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YSa2lehOra3pIrzmcNKQYQSAqQ1tk089Xz7U8EEg35w=; b=Uo820NXt9w3I31UEkb6WREaWk1WW6ebKmG6OgTu5GSfeP5EnSdYfj32DA4LDG/jG2g JKH49IwtkVpBUwc+UIDKn7IqyXuLudiJEmkN15N8QUk+roZNDZ2/GFltbZgcwUYQjIqL g4rVbENZXBjXVUQ2Yiw29wItW1ki1T0UjHvU+q3j3e2H6Qjy1yqbjgte2b+g/M1VGi8h +WWjU6gargdIQYyvWiqQ5nafJUgyetNgqVLYlkw0PpZqblkSsN/yV/MOb24bpwkDT3D7 J/DZiFVXPF4rEZiEUW847+aCHiDFG6yJlEDNk4ZGN112ceouAMEMeMhNdwtScTNVkmUl w5Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ok2lqYxB; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si6174013jac.50.2021.11.01.02.37.18; Mon, 01 Nov 2021 02:37:43 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=Ok2lqYxB; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbhKAJhd (ORCPT + 99 others); Mon, 1 Nov 2021 05:37:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:43674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233690AbhKAJd4 (ORCPT ); Mon, 1 Nov 2021 05:33:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C1C236127B; Mon, 1 Nov 2021 09:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635758728; bh=46AeDbiSnYHpXNQLpRT8vroGbCZSfrLoI5tbgsyJM4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ok2lqYxBKX29S2TLNTXVZQTEpbmmkg/q5EmfLD/EndqgZHP5BKkHyctMLqtHdKCHa v2zwRv2IUIQ0iSdhfhREGszSYKvBsh8GZYogqofNZBoNSGwabqs58mNYzL6UTQAUq5 eTY7A1k3qujRnNrbxLsVO/P2+lwOpjZjPCYrWhPA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kees Cook , Arnd Bergmann , "Russell King (Oracle)" Subject: [PATCH 5.10 04/77] ARM: 9138/1: fix link warning with XIP + frame-pointer Date: Mon, 1 Nov 2021 10:16:52 +0100 Message-Id: <20211101082512.097601338@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211101082511.254155853@linuxfoundation.org> References: <20211101082511.254155853@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 44cc6412e66b2b84544eaf2e14cf1764301e2a80 upstream. 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 Signed-off-by: Russell King (Oracle) Signed-off-by: Greg Kroah-Hartman --- arch/arm/kernel/vmlinux-xip.lds.S | 4 ++++ 1 file changed, 4 insertions(+) --- 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);