Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp928934ybt; Wed, 24 Jun 2020 15:06:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFJDz9xJ1XwRKRQ3MP1fBAPkmFVFAM3Kbp+EpYIH+JjLIriCgyFfwrl8KeKtw1/fNhojNH X-Received: by 2002:a17:906:5657:: with SMTP id v23mr9533673ejr.196.1593036382269; Wed, 24 Jun 2020 15:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593036382; cv=none; d=google.com; s=arc-20160816; b=Lp5LS/48pWpc4j59vS/VMhG45vIeVC595bguAslvoWjcYgwIOukKcgCpGthRKc9mdA Mjfj6JGMQVJ8GDXt6CZQFz7BOZfHHHBFqguE7awYWTusxDdHRWrW93KXsb8bNc7+h2AC Sra0ahzHihOv6p9R30i4R1h84sxtuaZTm8UQkd7Ujivh11zcRLr9PUFrxgpOFY2ForsV hBWKLIqyinS64D19JSK++hOClLIiLkMB4TnCZekO1JRKFPf91q6RmiZuGWpIIrfh0ldY p2uAkVKElzY/0kg6x7zQu2fSmoN1ppQrJwjoCMF4i63jtoK4K6wBhBPspWki7uthr0hl r/QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/O3ShsYHI31KeAbcJImqBKhK7RmR1YrkXinaLdbS2cc=; b=Vbg6CYqM2hN6Igseh/FG7FFO+5uW3KhPCCLu3uae5OG7RhWF2Eky8qzHYmg4Nvg0S9 BAb06UqrxXQfL3qd3tyeePdjbSB4uQmBRwcqg+kEQn0PAf6JWywWosq9qGA8pUb6gngO VEFX0rqdpoM3U8IhBmIwxP5xEWG42hClEmgRd2frCkS8G7iGFAbe8RUmv4VtzQ8Ww09z 0u6Jr3s8wo85dH9rzOx8xdT96WrNGWYnaU+YRYgA55r6Y/Y5Ge7WEicZEVN5GyZlzB+o 4dlmmn7Sg5k+e+IFWLVzqhzMKG5nlq0p7F3gKbESDZgFGrNST5VcZuFtGKmMtT126OBx qK0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=km0rbdas; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr2si13962196ejb.454.2020.06.24.15.05.59; Wed, 24 Jun 2020 15:06:22 -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=@google.com header.s=20161025 header.b=km0rbdas; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403984AbgFXVbg (ORCPT + 99 others); Wed, 24 Jun 2020 17:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403823AbgFXVbf (ORCPT ); Wed, 24 Jun 2020 17:31:35 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7410C061573 for ; Wed, 24 Jun 2020 14:31:35 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id b7so2686818pju.0 for ; Wed, 24 Jun 2020 14:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/O3ShsYHI31KeAbcJImqBKhK7RmR1YrkXinaLdbS2cc=; b=km0rbdasUCx++8x0lRTpl9dRVPlkvvgXmXH5VDqn1z/oWbZzfjocNBIe3ZynP1hSKb KVFJqPSTAVKH6Bv/v1uTTgpFU33rli2X3C/m74frA2+rWkygENBnngQ6aWJvCvtTwisK ZbNyudsS3PRLC9fuaxb8wpD7eLdi56OzlUX+Ro85RkehRMCJuUd9kGrUaJVjx1Rm6zjq OX9MIPdaaEsCkipcX4Eh8R80M8kBtbcIH8WUg2cLSf9HDDLe4n46v5madSBqNDFMNyys VlZ3/ZtSFkzDrwh90gPCorp7EeMVtZmCvszFtKxrIAgZiR2lx7HkBAL7Cd84LfmKQ6Hq Sr/g== 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=/O3ShsYHI31KeAbcJImqBKhK7RmR1YrkXinaLdbS2cc=; b=TcQct87CSmpR7VTQxEitW/qNYvVpCttRdQ9IqFEfmtoxsznpnjozD9G9X3BZ4KIOfP 4vwXRlug87L4XK7AicXs8oMpofJsAtbkFLtQvg24/6F2asgnWpXq0UyAOms8tTBR1mmW YsaqKROOpbCe6/t5ih8FpunagKYHem7g7CVLwGoFN2HZVwY3b9cpFeYxuEqEi3XlSDT9 bg9ywWaDFQfglzeDGHIW8e86jYfKqahH72bwodOvUa3aZMZmzVqqO1IyN86tstcxFfSF vE/QTkQhGKxPbqH+APmSnlxnNpzB+vI0c+GkwSsN4RdsMuVp1oECMkm3KAplaObSA3vx 4ElA== X-Gm-Message-State: AOAM533vOqlQPN1HrJoKmDDlYc6EfuYVG2ilhE7x38Sy21pisnRHeIr/ Xw/92OtPUJ/5qNXBU4iy9wXB8A== X-Received: by 2002:a17:90a:4ecb:: with SMTP id v11mr29922206pjl.75.1593034294906; Wed, 24 Jun 2020 14:31:34 -0700 (PDT) Received: from google.com ([2620:15c:201:2:ce90:ab18:83b0:619]) by smtp.gmail.com with ESMTPSA id a12sm21064814pfr.44.2020.06.24.14.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 14:31:34 -0700 (PDT) Date: Wed, 24 Jun 2020 14:31:29 -0700 From: Sami Tolvanen To: Nick Desaulniers Cc: Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , clang-built-linux , Kernel Hardening , linux-arch , Linux ARM , Linux Kbuild mailing list , LKML , linux-pci@vger.kernel.org, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH 07/22] kbuild: lto: merge module sections Message-ID: <20200624213129.GC26253@google.com> References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-8-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 02:01:59PM -0700, 'Nick Desaulniers' via Clang Built Linux wrote: > On Wed, Jun 24, 2020 at 1:33 PM Sami Tolvanen wrote: > > > > LLD always splits sections with LTO, which increases module sizes. This > > change adds a linker script that merges the split sections in the final > > module and discards the .eh_frame section that LLD may generate. > > For discarding .eh_frame, Kees is currently fighting with a series > that I would really like to see land that enables warnings on orphan > section placement. I don't see any new flags to inhibit .eh_frame > generation, or discard it in the linker script, so I'd expect it to be > treated as an orphan section and kept. Was that missed, or should > that be removed from the commit message? It should be removed from the commit message, thanks for pointing it out. Sami