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=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 90F62C433E0 for ; Fri, 26 Jun 2020 20:22:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31E19208C7 for ; Fri, 26 Jun 2020 20:22:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="CaNAYjsN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726086AbgFZUWf (ORCPT ); Fri, 26 Jun 2020 16:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgFZUWe (ORCPT ); Fri, 26 Jun 2020 16:22:34 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7FABC03E979 for ; Fri, 26 Jun 2020 13:22:34 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id o13so2448123pgf.0 for ; Fri, 26 Jun 2020 13:22:34 -0700 (PDT) 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=jPQAU9v4pzrY0PE4flu5PAPHobp8jdW2HNLTVUzT1oI=; b=CaNAYjsNjxP0kkLIdVlt5c5Oa69x7xRpiGN4goDW3e/OAe81FlW4dN059KGBwdguPB 5vV8GLL/6sQPsht0FTZUK4Yq1s/Sny/JKF+6B85oIDf03yHmfipwByPXObyqexE0YjoF WAOFnDVF04KUIeQU/TMB0646LxnS8fVBKnxlk= 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=jPQAU9v4pzrY0PE4flu5PAPHobp8jdW2HNLTVUzT1oI=; b=ecxPp+GoRT1GYRvlMrHwxT4rfqW+8dNjAU2aSnEoSpnn+RFk7z9kl5T40Gehrcn0j/ vrowqmBGh1h3QBB+LAe1ZTJiqO7QKSYI6oc0Kn9S6zrtxJoL7WKIsgds3Sa31cXl8ac1 guCIViycYFT/+xlQCQ/CMkgBjBoI1s+KI3M0HNSwQ7OVdzcg9DRz9i9xQ8OVGCsP/dUz x6cGoRNghDhsbBv2SIamGr4RAT5K6prRpNfX+WVRy7xRiYsQyIHtFAIJoPOd5RmHcgQ9 ZuMvv6LFXMx897i9mMmZFIegCNsIz88BFIxz74jaG5MNKyA471f1hwOCj2rTSb3OMo4R lHbQ== X-Gm-Message-State: AOAM531wn/vrTG2WSVoxuIet0d3+Riub9geHS83vuufJ4vhBAzv5EgVv QertIHoc78ZW2pGDlBTYStEHvg== X-Google-Smtp-Source: ABdhPJwrOIeTMLKdIft+cOWotSF/l2fs2SAMNrFzNIavYFmOhxovPlR/2MDGKJa96fzr1pOzVyIL3g== X-Received: by 2002:a65:6650:: with SMTP id z16mr433923pgv.161.1593202954587; Fri, 26 Jun 2020 13:22:34 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id ds11sm12153574pjb.0.2020.06.26.13.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 13:22:33 -0700 (PDT) Date: Fri, 26 Jun 2020 13:22:32 -0700 From: Kees Cook To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, clang-built-linux@googlegroups.com, x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] kbuild: remove cc-option test of -ffreestanding Message-ID: <202006261322.16A9F14@keescook> References: <20200626185913.92890-1-masahiroy@kernel.org> <20200626185913.92890-2-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200626185913.92890-2-masahiroy@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 27, 2020 at 03:59:13AM +0900, Masahiro Yamada wrote: > Some Makefiles already pass -ffreestanding unconditionally. > For example, arch/arm64/lib/Makefile, arch/x86/purgatory/Makefile. > No problem report so far about hard-coding this option. So, we can > assume all supported compilers know -ffreestanding. > > I confirmed GCC 4.8 and Clang manuals document this option. > > Get rid of cc-option from -ffreestanding. > > Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook -- Kees Cook