Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp14807pxb; Tue, 12 Jan 2021 18:32:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrSj/l6VCHpP4JHQZOcGLS4j8Q1qMZw/x1AmPaKwhRWZzPEvsY8zitMA7h+WZK2JiwWkfN X-Received: by 2002:a17:906:dfd3:: with SMTP id jt19mr1237073ejc.64.1610505126587; Tue, 12 Jan 2021 18:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610505126; cv=none; d=google.com; s=arc-20160816; b=zkFXxCUuzTPuPLGPUApVEbcx6G66eNDEZwnn3OQfjPQ1oZV1u9eZdlCXyPhMSvVFcP 2TR+ZZu4SCumYF7BvUitNn8ltuRcQhhSBsB8h0QrL1cJNQRYtgqFZvT6lTAwa0QECg1S M1eQ4bB2ty54H26wrnvm7mXuLwH3QyyKnYhYeKrAUaYF29gMDjotZzFGcODK0QmAilOI N1Aea99AF2twiVtN/wO8rXQiQzkW1ySOQEOkmaLxDX08kLtAAoCBOFyow5n+eodgpdj3 ebto2fjbEdJzFmv+gfFWkFUWeRY45+ycuTAksXErbX26yNVyiziMsND66rGIoTl1Do9p w9Tg== 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=+1M3GesbgTSmOd2h7c4OH51TFpiZEy46zgQiOOCDaG8=; b=fFCJtXO8ePACFz51TtMADHN4EPI652qgd/TrY4xhwCVyUXZdaX4YtWWCiJa23XYcGr HubL2VEAj+rBqCSM89enKR5UbXcv65TfnvKci5IZhGdjXzjji5XHOr5xerx4G8LEo52X c057xhioFbk7+vHmddCWeGwLPex+LDGU5LfgZ5gnkp9AwN776coGmH+FuMouX3jHTVr9 SNm+x2VOwcan6UCb5yQgwiAZ4RvCj3xhdiePYs8JSrNkZv7OsO6UGy9NcTe+fcq04PJs GYyBKOzHBMktQooYeCwPBOamRozig2l88VZ8Hnq19kzXDZG/YsWI2oHvmrUmCuex0I8R urzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UUnF4LkM; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si257757eja.271.2021.01.12.18.31.39; Tue, 12 Jan 2021 18:32:06 -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=@chromium.org header.s=google header.b=UUnF4LkM; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437511AbhALVe3 (ORCPT + 99 others); Tue, 12 Jan 2021 16:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436920AbhALU2c (ORCPT ); Tue, 12 Jan 2021 15:28:32 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F6AC061575 for ; Tue, 12 Jan 2021 12:27:51 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id p18so2191956pgm.11 for ; Tue, 12 Jan 2021 12:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+1M3GesbgTSmOd2h7c4OH51TFpiZEy46zgQiOOCDaG8=; b=UUnF4LkMhWNZELMiMXlsNEOijuryuhnZoC6pF/VoVBc72vRes6Rvhjl2R/8nUE0HBD VUMHE8cTN3oAC99mUOcH3O1lEsrUrcFMwfWtEfmyR/7Vk5h4A0TEufghlh75rUhI3ny7 Ek+jkSRiGyGUYJpnksD/WbLA3UDkzNDeAeHDM= 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=+1M3GesbgTSmOd2h7c4OH51TFpiZEy46zgQiOOCDaG8=; b=S8/kBR2+CDiAjml6uNWz9xWVMrBouPq413IwcLJovFQ8f5rSL+B3xABL9AQQqY8CIv ISU6Mt6v9hNrggsCAahBj9mngBXFdRgmwKUo9fOU5dnjTyG8sPhYi3G4Mx5JeDi3fMKt KsELnfI7oPgmSI2Mc0DKQoq2zaarizq36be+MnY2tZa5MjSj3jbRTbG4XmGOg4cxEoqM df4jHbKV5ffn4nd2oe0vOFMZzl/AyLjcfOStBjsYhjMRNO7aQ4K4XuNqnz1lniMVCuL3 mquewy2b/yjkQv+jAXmhJwDIakbFOU2gtPh18JpseDK3vTQrtGaHBpzSIZdk82eXY3Sl Si8w== X-Gm-Message-State: AOAM531Ehwp/mYJ3JmAYPDG8dr6KIVMrgkBNfBhIZwMbvx6SSag74mtr mgtm8WNeRTpMEc5beB92s4HKjg== X-Received: by 2002:a62:4e95:0:b029:1a3:a372:8b3c with SMTP id c143-20020a624e950000b02901a3a3728b3cmr1009973pfb.28.1610483271533; Tue, 12 Jan 2021 12:27:51 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d10sm4096844pfn.218.2021.01.12.12.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 12:27:50 -0800 (PST) Date: Tue, 12 Jan 2021 12:27:49 -0800 From: Kees Cook To: Arnd Bergmann Cc: Russell King , Nathan Chancellor , Nick Desaulniers , 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: <202101121227.446CE291@keescook> 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: Kees Cook -- Kees Cook