Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp585155ybm; Wed, 27 May 2020 03:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypjjSQSM1m5gQm/MVo5gMUR0Mf34K1Su7hz7JA1AqDbrC8nIpCrnNxHtXX/0YuHDZydZb7 X-Received: by 2002:a17:906:29d3:: with SMTP id y19mr5097165eje.258.1590573783301; Wed, 27 May 2020 03:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590573783; cv=none; d=google.com; s=arc-20160816; b=doEPnRFYRhjNLQyrE+k4TmoJoEPZpmdUXr8qrYoFqdcLjAQ5iYuRnD5P6Np13PgwY/ QVMh3bTQxh1H4pm8bZGpadpkkHQJorl4KmJmh8RsDov8sT7VtX8hhf2Bd98PO15rGlQD Rpi81CK/gtkEjJ+TV6xifSkXkd1nI6eSr9kUCvR6bCIIGiaPLnZgA1RNBzfOXfwSW6IO jGzCoMZBlzCz89iu4GZGgKMLS3DLq4n9bRQNMxihMknUb23cJAv21IZAG74J9AzylP20 IAh+rJgLunjqGONSs7jHgD2LKceuE0T11zpyxdjF9Ng+q9XRXVp7VfSjoGE90FeL1Gvy LHGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=LKkJBDDmDnUelXQ6SdnZ3yjotczg+ijTtnQ1G5n/CZI=; b=eqotG4bqHEeX3FUIJ8g2MsxapmnxUcYEAyUbzl7F3yu4ZivlqBOUnzEZ/nqE37L7Ww Mbst8ReMQDVfdmcDhlzixmb8f6ZjcLs4qVDMZvXhcNbKg6Bz9GiUMM87k28183hOiCaP w29k3a4Bi18/mmZrsn9XjrkpLgZvIlZIr/H6UsSHxV5AA6rY0ttckzhXPXkZKhq22jJK IUxwzeaSm//bf1XsJi5wGJsBoUOzuMw31YdR/skLsoOjhJsGhddUq2MreMAWze/oJ0Dq DIsPgO79af37c35FadzKj49f7/PTj791epmkYt8TOYKgHbYA2DRyI/H9GboY6sWrK1Dg Temw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="qTa4zg/k"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si1636560ejz.22.2020.05.27.03.02.39; Wed, 27 May 2020 03:03:03 -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=@gmail.com header.s=20161025 header.b="qTa4zg/k"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728259AbgE0GYh (ORCPT + 99 others); Wed, 27 May 2020 02:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbgE0GYh (ORCPT ); Wed, 27 May 2020 02:24:37 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E252EC061A0F for ; Tue, 26 May 2020 23:24:36 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id p20so11287416iop.11 for ; Tue, 26 May 2020 23:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=LKkJBDDmDnUelXQ6SdnZ3yjotczg+ijTtnQ1G5n/CZI=; b=qTa4zg/kB8RUMV6+ZrT87sAhVt0VKd/pe5awQVBeSnQNe+hXtvbc47KeuQ4Ra55ips cLQDye/ZnBjLNphTPjLu/vO02z/qBHuE6uLEsnS/nVbpN6qVx91OwWNcTQO26dfwSAjr I+I228+hogx9XQRdfPLbXb5hJv/nXcX0qZiv5sQv6yRnP58NW4MpAwQlCvNiS90FqP8z 4SLKJGHRd9bAoqbqlfkuGhKtKCsWQ/yofXzegcSeUllfPbTSlA9U1lAfEfEx36oMJLOA tJIMkc2bBztsLzh5o+auXTj/26URwHSRShn2+xIowzj9kqTqbIUaaj3SsObYFnhdbIB9 /BJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=LKkJBDDmDnUelXQ6SdnZ3yjotczg+ijTtnQ1G5n/CZI=; b=FzLDWJBT3EaUkkuFbubsu99mwfuG1OdCLVlJcaxtDUpVykMsvg5+w3Z/B75Qg3qQAJ kG4EtoQCTPAeYLL3wnw5pQ5Kzsfi9atv0Z/pJs/jFu0/1FXrrlZZzMq7t148WnvsTPmI rrXvD1GiUcdJg2tKIKPovdW6gfmEW7FNBGQEWIXBvRk96qfC2PqSuwbLAiAusvWoeEJI nrZL0I1faEhTpNmFLEfyiMPrgvY207giP/TEHWzBn4d+LdPsLUd/e7BG+ERbTS0QC5s4 qwdInbD20jEZyHkW4ZFFNfT9ub9SwoN7IkfuCbg5k1JkFpsqnXwmwuZwsQr4Gsol9X7D 8kjg== X-Gm-Message-State: AOAM5330LS9jENFSb68HGEKQ79zAucn4dtJRU/TMfu9dSWtRQkSq9uzu yeX4XVDLXzjFxhmbjeJkHteZYH0PodGng6ShKKI= X-Received: by 2002:a02:ca18:: with SMTP id i24mr4295860jak.70.1590560676311; Tue, 26 May 2020 23:24:36 -0700 (PDT) MIME-Version: 1.0 References: <20200524212816.243139-1-nivedita@alum.mit.edu> <20200525225918.1624470-1-nivedita@alum.mit.edu> <20200526153104.GC2190602@rani.riverdale.lan> In-Reply-To: <20200526153104.GC2190602@rani.riverdale.lan> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Wed, 27 May 2020 08:24:26 +0200 Message-ID: Subject: Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel To: Arvind Sankar Cc: Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , X86 ML , Nick Desaulniers , Fangrui Song , Dmitry Golovin , Clang-Built-Linux ML , Masahiro Yamada , Daniel Kiper , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 5:31 PM Arvind Sankar wrote: > > On Tue, May 26, 2020 at 05:07:24PM +0200, Sedat Dilek wrote: > > > > > > > > > > Maybe this should be: > > > > > > [ arch/x86/boot/compressed/Makefile ] > > > > > > -KBUILD_CFLAGS += -include hidden.h > > > +KBUILD_CFLAGS += -include ./hidden.h > > > > > > > NOPE. > > > > This works: > > > > [ arch/x86/boot/compressed/Makefile ] > > > > -KBUILD_CFLAGS += -include hidden.h > > +KBUILD_CFLAGS += -include ./arch/x86/boot/compressed/hidden.h > > > > $ ll arch/x86/boot/bzImage arch/x86/boot/compressed/vmlinux > > -rw-r--r-- 1 dileks dileks 6,5M Mai 26 17:05 arch/x86/boot/bzImage > > -rwxr-xr-x 1 dileks dileks 6,5M Mai 26 17:05 arch/x86/boot/compressed/vmlinux > > > > - Sedat - > > It needs to either be $(srctree)/$(src)/hidden.h, or we should add > -I $(srctree)/$(src) to the KBUILD_CFLAGS. The latter option is added > automatically when building in a separate builddir with O=${KOBJ} (which > is how I, and I assume Ard, was testing), but for some reason is not > added when building in-tree. The -include option doesn't automatically > search the directory of the source file. > > -include file Process file as if "#include "file"" appeared as the first > line of the primary source file. However, the first directory searched > for file is the preprocessor's working directory instead of the > directory containing the main source file. If not found there, it is > searched for in the remainder of the "#include "..."" search chain as > normal. Will you send a follow-up or a v3 for this? - Sedat -