Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2043763ybh; Tue, 14 Jul 2020 14:11:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+0Rkpqsmyp+EKixyU8LWkDg7/S65cnuaAxBYlbMpDuMk78pjqo6GU/64aqZ+yYgWpL9fe X-Received: by 2002:a17:906:f183:: with SMTP id gs3mr5952040ejb.361.1594761071666; Tue, 14 Jul 2020 14:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594761071; cv=none; d=google.com; s=arc-20160816; b=he2jmodaUZf1da7PB78zQcP1rNNaycGwjD1V1JNYPsV41l9QRxBCb6mVl8A8UFjmmy axHht42c2xMTFGVXgiJCoSHoUoD2r9zwpSToze/8t8T0KUS6xdzTVzyiV2Ltn15RHkzp uclnaV8W8qxho28k7/1XxSePbL2/QF3772FOcpOE4e1z7lvaAWJbHmecKGZ7TOcdK0cc jLNnp5fRuzBAUAIpJDiwGa55oqO/3AYEoxT3ZqTU0nJOaqAcNPExcJylLgmrEFh6/G81 rF1YZn0p+bbl3QAw3CDlUGbN0Pp4kSybdOVdUe9/a0Sat8avWCmcHlaGmCnZ+3ktEdeU 0WXQ== 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:date:from :dkim-signature; bh=11WJyEAm3+xbqzduMNqA3WjbGwHVjoCwQAhn6aCLeDs=; b=a85k7UY/u3n935o08DDZp0ouphJonYmXd3b3K4IEjtnOrWO7fpeIBJrczAw1Obz7Iy Q8cF7SCtfTHRL9Jml309/vg5WK9df8XTZP+fbBl738vEAC0G/WZ8HM1iVcI5wJC+Khyw wZVDIT04tu/Swf/58dN0DRr8vrAIgY8DFLTeUw2nfUvccnVMSFzCaC95hNriN4sNp//T tEQawHa6M2KZcAppmZrmSyHRhTU05fnSUHLV0xVrmJLNHekqX/AQ5khmmEK9CL/af1Kj WVC0tQi1QCeMa/lBSRYeenjRHVTCq+8Gj76GKU/5PxGc7XGIGCL//4HcEqVF7PYuVTD3 gkFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hlMTj6kj; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si12163793ejs.400.2020.07.14.14.10.43; Tue, 14 Jul 2020 14:11:11 -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=fail header.i=@gmail.com header.s=20161025 header.b=hlMTj6kj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728096AbgGNVHu (ORCPT + 99 others); Tue, 14 Jul 2020 17:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728033AbgGNVHt (ORCPT ); Tue, 14 Jul 2020 17:07:49 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 469F5C061755 for ; Tue, 14 Jul 2020 14:07:49 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id d27so34618qtg.4 for ; Tue, 14 Jul 2020 14:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=11WJyEAm3+xbqzduMNqA3WjbGwHVjoCwQAhn6aCLeDs=; b=hlMTj6kjGIKoGE7fT8lAFF/hZ8rq9g/khJg8CTst9mUJ30kwFBOXM/gBMJLKWne0Zc OvMPQ8t9KYsoBOOiaO3vq5XAv4tOSbqTCMZ5okH35+/D2yA6je1eftwRr0UhxyTsQXXX 0911LRC6Suq/A8tWS4Ln+pDFF4NNPosS5jl42xCwK/zb0FJdfJGKx9MWb3lXikz6zNCW ++eg0AGqes4BZ1S4JkALVEDTczxy1oo9RoManqXY4kuWll9Ca78WvASO2wGP8t40GgoW CIFTV68bEEYY1S3gp9InQAbsTaqD0g2B4SNWv/tAQn1RX44zpzQpnxIr9BJ7JsZQqyRl /klQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=11WJyEAm3+xbqzduMNqA3WjbGwHVjoCwQAhn6aCLeDs=; b=IEnpwY4KTBGt8jSjbTjM2LL/0MvcA3ZXBDLTomBIqPvJ9TEbN6F4P8uZ2lwb6Ayeax NVOVFtY4+D9gorLJb263YNQBbh73e+cqW19H9+kv/k64Dj3ELrPjPuVrUFn/oA4aZIaE W9BpeI0+drHteblsuNeW+VdNabR51Y9PP0MJOtEQ0Vb8iZ1uSOvOFj2JkalTA/a1XD5C h2oo5vmbtx8i/hue2WgFtctEZgxo9NdGYqcAbaBKQc15uB7BYty4wbU95zC+jSX5/CSi ZdqkCXIjaiJI//azdkbcVDdoMIYd9UHRtEHsLmPRL7eNmLez2aKC7oFQ5AOw1wfvmUv/ 7hTg== X-Gm-Message-State: AOAM531qjCgfSVg1JUwFGysgWGdkY1A/67UI5FjzHXdE7q0N6gpPplYJ 7p7W+ekydlQBtsYOGxgAGFU= X-Received: by 2002:aed:3b99:: with SMTP id r25mr6640502qte.315.1594760868524; Tue, 14 Jul 2020 14:07:48 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id m20sm21772838qkk.104.2020.07.14.14.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 14:07:47 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Tue, 14 Jul 2020 17:07:45 -0400 To: Sedat Dilek Cc: Arvind Sankar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Nick Desaulniers , Fangrui Song , Dmitry Golovin , Clang-Built-Linux ML , Ard Biesheuvel , Masahiro Yamada , Daniel Kiper , Kees Cook , Nathan Chancellor , Arnd Bergmann , "H . J . Lu" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/7] x86/boot: Remove runtime relocations from compressed kernel Message-ID: <20200714210745.GA918357@rani.riverdale.lan> References: <20200714192956.GA689174@rani.riverdale.lan> <20200714202100.GB902932@rani.riverdale.lan> <20200714203537.GD902932@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 Tue, Jul 14, 2020 at 10:43:11PM +0200, Sedat Dilek wrote: > If we move to LDFLAGS_vmlinux we can drop the "call ld-option" as both > linker GNU/ld.bfd and LLVM/lld.ld support this? No, because ld.bfd only started supporting it from v2.26, and the kernel aims to be buildable with v2.23. > > Do we need to adjust the comments? > # Compressed kernel should be built as PIE since it may be loaded at any > # address by the bootloader > It looks fine, no?