Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5009018pxb; Tue, 28 Sep 2021 08:44:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqX1sJUIKpxxVFWbSGmhDbt06O8xayN2SI+e+z+nATdLusPwmg2GEd4W/YqoZnP/tyBTqA X-Received: by 2002:a05:6402:485:: with SMTP id k5mr7385598edv.257.1632843879853; Tue, 28 Sep 2021 08:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632843879; cv=none; d=google.com; s=arc-20160816; b=NMkAYiB5xaG7j7v+lqTXoQKpHxjIoIyQPFfDxVErRJj1TzEfvXWt1C3Tl1eowZCISI i57BnRkiFxmg2cjDtBoVtZCnd4krpLBbTZS91jVc8vCxKSn977n5v2IM2JGVzhDdl1xQ 5qFmXs3svrAIlq8wmO9sXwaSo6jmxHH1+Oyd7nJTQJO3Sa6IMt4KYu3HyuYr0ZylJ/pz KCALnqj0+bxhhrjVkUjH7Od4VD9pJmpF6FdwvlZ+f/n54cA3/5VytqYHNae4QikAwYjT rnm/++Yl8pYYE7PCZAuDwc7W+hGO+HW2jxLCARFCamNHxaf0ID232D2z2svr7jKmiMog zx6Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rGp5oJ6YfPyOkeSvBd9hUKD20WvyosgB8w0rGlWUZac=; b=hHq5orQf+KWcup+X8JlQxcfn7RvwiIaaZeMvLyYFHzS/bwQW4UbAQZBA5/zgLaaRhs FuF0kCh1nXSv/eFD0mq8qI6tEyHYHNLS7MDmOGmyJUE16dxvDazetpM4a42A+jXI3fR4 OysUQIWUEACWSvlaYM2x4GikGTnZ6pIz6LZfQ+jN5GkCUWrdv+N42m9Oil2fIv4JCaxN iSjJveJzK1NFMJbKTFR4J3pJyRXZFQh5qRD6w0mevEEJqvv8EHUmByn4Ipc/gXkG9Ma8 2CrfLEBHi12AWm1/O4unPeE7bscH+M+9YtwCYdCElC6W9PqS6eTzyVqefhbKt9TP6P7A WTeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mgQ0sRJd; 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 p14si317101eju.82.2021.09.28.08.44.15; Tue, 28 Sep 2021 08:44:39 -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=@kernel.org header.s=k20201202 header.b=mgQ0sRJd; 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 S241770AbhI1Pn6 (ORCPT + 99 others); Tue, 28 Sep 2021 11:43:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:60670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241761AbhI1Pnx (ORCPT ); Tue, 28 Sep 2021 11:43:53 -0400 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 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") 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