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 X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2342C433E0 for ; Tue, 12 Jan 2021 20:29:44 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 8B62823120 for ; Tue, 12 Jan 2021 20:29:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B62823120 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SL3i0+V7bxGieKlnsX6jzUXLBqYqzTt/wTMAmvQnY+U=; b=28I6w9Z2ptsuMpIzjmmNCWGER kGMSpPvtEi4h7ugmW8q6TyAU4psoPa/68PvB5POtTDCmPFApaE7qISdXGalTg/yuvf2szxW+fVCNF rFeXc8ZN9TpgWa4GcNpJuuEfpPnvIEDNwmbfxujZSAmofCmvcJwcYmeMOWN2nfDomGCULd5ntYcHj AgvD+pBwo2C2RmrYv0u2+yCINCmKB6IGl1ezy6KFwWyc4nlyGNuiN5C0FSaYk3IOONVcRQQ4KgwHb G0gdMq2DJtWoEzGJCVoQH6JwpUUxjBYp7Tags8mx+ewqhzsphMzBaAXT/aMn9ZBsdtO74tvm4U5Wj uncQ3zi6Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzQGk-0007vj-Kf; Tue, 12 Jan 2021 20:27:58 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzQGg-0007u0-Eq for linux-arm-kernel@lists.infradead.org; Tue, 12 Jan 2021 20:27:55 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 30so2212861pgr.6 for ; Tue, 12 Jan 2021 12:27:53 -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=ZIwYDBv/25En/cgIgR/LzBbsl8z9rifvSM22t+W29XZRBXZkBZ3uSjECDspXoS6quI DRxVbhCErOmPOVk/LTZDrpTWrms1BQ+KM4Cqr6xrPaJAFIXISeCeb7c20fqL7cACIbBW 64JFj6upqL88Tghp3JKXuyL1sD8EhU4OTLo1ChmJCw+rp58rt+CqVDOEiWt7pkqNCJ1l NvlZsAt4Zci+v7O7FsFAU7TnVdKXtD+tjZckKRUrzUqWvJWffCrWwNKDNUrQwFFG/Fph 3r6SW8hOY6sdrqhA1z8IIVdG+LQlGqCsF1wUe1xDEZFilcIJhAXO5JhlQyEpuJeJsLLB SRaQ== X-Gm-Message-State: AOAM53384hjb9NPIYrDRUbcPYmkli5tO1q/d6QYt8iTaYWvFaITLSggh KfjLDTpVTciIub1uLZryN+SCaA== X-Google-Smtp-Source: ABdhPJy9YmRGBxfvvgvUymkpFG+zoygKea02X2kwbSpCsfLveKRHblB3sCeYdtAMiOGgZ/S1ph8yvQ== 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 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-Disposition: inline In-Reply-To: <20210112154658.850192-1-arnd@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210112_152754_586321_36446EDC X-CRM114-Status: GOOD ( 15.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vladimir Murzin , Arnd Bergmann , Catalin Marinas , Nick Desaulniers , Russell King , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor , linux-arm-kernel@lists.infradead.org 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel