Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3191252pxb; Tue, 12 Jan 2021 08:28:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZFxjLYLErZLAIpQMwycrjfJ91zgtMQZrXHDW1qzkduS8d2mZU+NdOet0tDfGmXgQa+AT5 X-Received: by 2002:a17:906:6693:: with SMTP id z19mr3711658ejo.376.1610468932041; Tue, 12 Jan 2021 08:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610468932; cv=none; d=google.com; s=arc-20160816; b=dtT6RHuGfs6dUhx8CvFDTcDsaMgLW5kqxy144vd0OmmC2X2nZVjHovxDNH1DMy+lxE rX99YkK+FDQ8xRNBAQBTYuOEh3EBl0sN/m/XyNPRhZH4tIGuz7aQLBBtyXM1DiXoqMbY XFxu2BboufAqrh59/YDJys6x2oqH+Z8YgRHYPvjoI51Pu3GHQNI1DADnCR205V6ZbH+f dYElSng3m8n7nPi+sPJnPUHX4zjpXmThOE2ak1OYNefIAcjlxlrfKhXi+jgw55YQIIfy upMItFmPq6l4WUeZPwBCRd2Yy5zDrHHDSzyWzoA+G9c23c7bT9fWDNpWLuJ5GRXl7DtN X6kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m/xAg8dQShPpmnR3cYTeN6zfiTB1lY9fOhPpNHe9wdA=; b=qmItA4lkjKhwz0wXGwKqNJlWf7aQSHonJV3gdk3A0H4A3jZ2PA9uDYBzNOqdxziPqi BpbgGPV7ouYQc1p0spQqtZf/vZArHvtA8vHfAEgjF3QgG1w6XcjfhE0jTZiZo6i6wCFE F1sZJpRYSniNQR6rJjnkQbrtGdivm4Nc5YLZyb6Dyl171s/lFJCUDy4I676Qgpr82R8r sHZHDmjUbZpIMzNezf15tmW8PiN4jBC72VWAMasxIuaTt/ViwXzNjg+qwlFuhGUfwNwf LgJ+x1I0eC00tnifW+j3CJ/bkd00o3Xvg6qqkOieMJRDMbz8rGmOBTjCIklaTikXSJNb /tmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UvBoBNgr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt28si1503830edb.269.2021.01.12.08.28.28; Tue, 12 Jan 2021 08:28:52 -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=@gmail.com header.s=20161025 header.b=UvBoBNgr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406298AbhALQ1x (ORCPT + 99 others); Tue, 12 Jan 2021 11:27:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392426AbhALQ1x (ORCPT ); Tue, 12 Jan 2021 11:27:53 -0500 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2918C06179F for ; Tue, 12 Jan 2021 08:27:12 -0800 (PST) Received: by mail-qt1-x835.google.com with SMTP id r9so1884865qtp.11 for ; Tue, 12 Jan 2021 08:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=m/xAg8dQShPpmnR3cYTeN6zfiTB1lY9fOhPpNHe9wdA=; b=UvBoBNgrRhXIsFgxW5rNoV2OEMAioOY0QBYgxyqo4GAuUsWSyv6dPMsj2O4q1x/L2o Kg0S1XFC0OJpPnd7D30n5fRtXMVQ3d4U7s0YAoVvSksWBLYG3DCYqN/rcFhBZYzY4bIe 7RtvZT59I7IBTA7nxAdznyhd1ZT1AJBDjvQYRSmXhTvcKvBg7HzXRoYnxCBUv7XeouJI t7r36ZMQBfgnQX8Cv9B50F6k34NlsHK7GwjeKQkeviaHqcSzc8OjGz3OISA79JCpkrFI x1R9qfE5AJGwgwiIx7+SEjWUbRxo3NGKqfcBYsX2xVuHOG/KjtnQKCANchKjhKHOdGJ1 OraQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=m/xAg8dQShPpmnR3cYTeN6zfiTB1lY9fOhPpNHe9wdA=; b=WhxT0DLeOiQWSDHoa7QQnwdVZ5NNVxHZOHkN+eLT1vkHR5lRqYE1RhsykYlw6bKGOD TfRKgXTVIpEfzCpxiLGpsmP3B9+3h4BXcwZ2ZUZ9wCn+O3ZKaX1u67Rf49XTljuCc1Ye 25XshgVd5UHMKzaGQ9xJWJtX94TLiGdwHQV6t+ROQRHeQLM48Z0VJleIM221cSFCi1rz wIAYNV330WEL00QsicRxOoXZjy2bP342PS2a8iP4C+yPyOIYvJE6HBFded2KI1IiWctX wMu2zz6n5tP9HV+49mzn5Oh4OqiDekLMUP5qBn4vyH2zfOvRk9g+U+U42XjhKnzC33We Aw5w== X-Gm-Message-State: AOAM530DXIyjTrqsxd24QqtBeqzk4LvDI6G1TvJ40zVY8mhFDip0g07A BHwo0gLFfQg/bAZUWNSCBeY= X-Received: by 2002:ac8:4b48:: with SMTP id e8mr5515857qts.254.1610468831920; Tue, 12 Jan 2021 08:27:11 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id a22sm1508160qkl.121.2021.01.12.08.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 08:27:10 -0800 (PST) Date: Tue, 12 Jan 2021 09:27:09 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Russell King , Nick Desaulniers , Kees Cook , Arnd Bergmann , Catalin Marinas , Vladimir Murzin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] ARM: fix link warning with XIP + frame-pointer Message-ID: <20210112162709.GA3373722@ubuntu-m3-large-x86> References: <20210112154658.850192-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210112154658.850192-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 04:46:40PM +0100, Arnd Bergmann wrote: > 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 Reviewed-by: Nathan Chancellor > --- > 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 >