Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp539908pxm; Fri, 25 Feb 2022 13:16:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSt1PBcjsOUNY6IE6s6eenfz8SOBQye/tv7pi8Xvs9/abLbDPJgxstDCir15YY7TKIIwDV X-Received: by 2002:a05:6a00:1143:b0:4f0:e9bf:6333 with SMTP id b3-20020a056a00114300b004f0e9bf6333mr9726675pfm.29.1645823805315; Fri, 25 Feb 2022 13:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645823805; cv=none; d=google.com; s=arc-20160816; b=uTTuWWz26qCSzUZhwZdCsG4Sm9rEhzy8Wu8E1H+7yUAA9KgKT7VW1PYW8tIV3bBu+i /Z5fFA1e+N7OEI3oNCOB/VhelPrA0EYNwPkO9Ct3j1V6iVCvt7T27fRQhcJH+hgKEQaD rw9xY/DxoaXelf7Da5lifaqnDW0UJ+G2/4kI4ZfS+Xgg/4ib8vwUy3l9hDGD2GiSqkgS UU7Bd8RNdMRntAkuibnzjSWWiN2o3BSHZMAI35wO1UmC10G9hFgif9t8jkx8tiC9xfM7 7UZd5X0JzM4W1EVCqj/jV4AoMdcgUNNR7kUQO9qbFuZARRuOmMQvuFhtqhX9fF8pjbsh /urw== 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=880bRVfPyr7NMb95p4UWtAvSUaMByNvaYtCuCwDnI4c=; b=xOiQMZglk4jxoqcE2oNWQhGvClDCvrEUX/XiU9gaIBoaSMDhKzq4Y6zBKb/ac9DE5D 6CJY6i4UGYkKJz8G7GU0UFta20909JhPalvZhBFVN9mHOO7+60uMoeeP/FA8MfN7S6Oz 6Eg9jVmghw6dN9yASmks1EaDXbW9xNdSRaEaE6Jv9BP34JGzbNewEkI6wWGUHzW/hLun Mmu8Sl9feRcXaNuCRWaAyzL/cCktoMS6gRzODzKFdO8K3PE5Tx/rtzvfqfBkguN0BI75 9rsKmRd/9dSk589lugfF0AddNWMLlYFPo7TlxHDvcshLMobhsHO8EPyD3j4dsizWYnFJ AWIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sShPFKyn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d32-20020a634f20000000b00373a611b00dsi2761457pgb.416.2022.02.25.13.16.29; Fri, 25 Feb 2022 13:16:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sShPFKyn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S242360AbiBYPvH (ORCPT + 99 others); Fri, 25 Feb 2022 10:51:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242357AbiBYPvF (ORCPT ); Fri, 25 Feb 2022 10:51:05 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174246BDD7 for ; Fri, 25 Feb 2022 07:50:33 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C7A2CB83273 for ; Fri, 25 Feb 2022 15:50:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 990C6C340F2; Fri, 25 Feb 2022 15:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645804230; bh=W5kTJHtuSAdeclyGcjAyKEzb2GWn6NO23yIDCLlIycQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sShPFKynozcZM8TmToRgyPdqEJVD7nYJsGKPxYqckrvhyxd4hyyA+qmvYr/OKBkxF B7EcDXZIWRoaZD/QgZXyOPjwk25M0DGVwbLXvoQs1JTjaEmih85nu2gMDyBgIFqj9J hVuDWk43sHZaZc5vfxqUNja2jReuMwoj0Opk8x1bftjooRTHyMYJIzbaM1k8EdkSvn 4XCVG6QY5aa89MNln/N0OlITa9W69eQJ0333wOS4Vk2GzaLGa5Y1bGAeaXxkAtnmYo O+6BxrgdC2LH9EmuNywLib0KaqYAnktV7t+UzES/L2hUOFjHKA36vXJvMDc4gVD+9c j3QbbBAgtWIOA== From: Will Deacon To: Fangrui Song , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Catalin Marinas Cc: kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, Nathan Chancellor , llvm@lists.linux.dev Subject: Re: [PATCH] arm64 module: remove (NOLOAD) Date: Fri, 25 Feb 2022 15:50:15 +0000 Message-Id: <164579795583.2003844.2115032608594321024.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220218081209.354383-1-maskray@google.com> References: <20220218081209.354383-1-maskray@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Feb 2022 00:12:09 -0800, Fangrui Song wrote: > On ELF, (NOLOAD) sets the section type to SHT_NOBITS[1]. It is conceptually > inappropriate for .plt and .text.* sections which are always > SHT_PROGBITS. > > In GNU ld, if PLT entries are needed, .plt will be SHT_PROGBITS anyway > and (NOLOAD) will be essentially ignored. In ld.lld, since > https://reviews.llvm.org/D118840 ("[ELF] Support (TYPE=) to > customize the output section type"), ld.lld will report a `section type > mismatch` error. Just remove (NOLOAD) to fix the error. > > [...] Applied to arm64 (for-next/linkage), thanks! [1/1] arm64: module: remove (NOLOAD) from linker script https://git.kernel.org/arm64/c/4013e26670c5 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev