From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=L8FWRgcA; spf=pass (domain: linaro.org, ip: 209.85.221.67, mailfrom: leif.lindholm@linaro.org) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by groups.io with SMTP; Mon, 29 Apr 2019 09:51:29 -0700 Received: by mail-wr1-f67.google.com with SMTP id v16so14668795wrp.1 for ; Mon, 29 Apr 2019 09:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+wK0XUJ6JS1D+kgSVRo0qUhUXu5MxyTf1yYTaejOkbA=; b=L8FWRgcA2dELVNUSRPOTY4+qYniMblc7u0xzSf0S+cIp3gtttCuy5b8PqJs6k4GsnH /9IsgInRO0OtbRiLVFjBh/DWRVPMGV6Te2bX3k1UhZuUCY2aILgXederYVBOFtXzEeHp 3VUXcPrYyqYTeLnKr1jCVBpOrIP1Z7zQNFlmrt08Vw4f7qj8vN7mEH//dcH2IpaF4sWk 9oEeRKiZ7UgYEXQfZ38ewuBjuAchJhrU8jvnJ5NlN6ygPW7RFGa1a9F+b9TXJWiMcO7B 3OQSZhgR7vGRxrAqjaLwMvS+gmnYd5i1QfP194oecErPTXO+X6pVq7SdCWBbso0i9wPc MEww== 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:user-agent; bh=+wK0XUJ6JS1D+kgSVRo0qUhUXu5MxyTf1yYTaejOkbA=; b=DYmgV4fF79qdYn7wGyfQGqL7SnSg9W1l6xEQAMKGfDZugwCbbOy8cTpEpkEdm7PSWb VVSvqA7QcgJp95Ul7UdCiQm02MuFnHxHIPXHp72TEP/qmFobEbJCag+Fa5qI3L16e/OD vf1FfN+leKMwzpPa5itRx0TxfKymtoAhc6Xj3kpUODW9mMzEhjOXnvY5Q+fLPFgz7xaQ B7/XA88IVVyJhtNg1gi2HESRPk1cKYIDp2hcA3Q8bACcHQrDB5Fj98HO5lNmZwtZ9Kys 1qqPHYrgeb6KkIEOPQU7veqtlMwg27Ofxm/ECnyvUbnZm9EgOd6aEWhdJLdigTs/mq5c nNDw== X-Gm-Message-State: APjAAAWij1CY3n+SC6/olSrmtWf9KUtPHlnj6hzEuGj1qlur+JGIgOvG XV8C6qKWq8qoMJP1SJFqJjVvi72n5NI= X-Google-Smtp-Source: APXvYqwtQlr/adpEN9gYNhCVFr8ybFgX9yO20if6Y19IeyM1g4JSMQOB6x/rSCdyKru2OwtYd7N0Sw== X-Received: by 2002:a5d:5308:: with SMTP id e8mr11353718wrv.126.1556556687332; Mon, 29 Apr 2019 09:51:27 -0700 (PDT) Return-Path: Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id g10sm32346557wrq.2.2019.04.29.09.51.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Apr 2019 09:51:26 -0700 (PDT) Date: Mon, 29 Apr 2019 17:51:24 +0100 From: "Leif Lindholm" To: devel@edk2.groups.io, liming.gao@intel.com Cc: Ard Biesheuvel Subject: Re: [edk2-devel] [Patch 0/7] Add new CLANG8ELF tool chain for new LLVM/CLANG8 Message-ID: <20190429165124.cnacggdw4guz2e64@bivouac.eciton.net> References: <20190426144242.19024-1-liming.gao@intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E431937@SHSMSX104.ccr.corp.intel.com> MIME-Version: 1.0 In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E431937@SHSMSX104.ccr.corp.intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Apr 28, 2019 at 12:55:02AM +0000, Liming Gao wrote: > >> This tool chain can be used to compile the firmware code. On windows OS, > >> Visual Studio is still required to compile BaseTools C tools and > >> provide nmake.exe for makefile. On Linux/Mac OS, gcc is used to compile > >> BaseTools C tools. make is used for makefile. > >> > >> This tool chain is verified on OVMF Ia32, X64 and Ia32X64 to boot Shell. > >> This tool chain is verified in Windows/Linux and Mac OS. > > > >Hello Liming, > > > >This series confuses me. The existing CLANGxx toolchains already use > >GenFw and ELF to PE/COFF conversion, so the name CLANG8ELF is > >misleading. > > > LLVM/CLANG8.0 compiler supports to generate PE image or ELF > image. This tool chain is to generate ELF image and be converted to > PE image. Which is what CLANG38 does - so why do we need a completely new toolchain profile? (Shortly after we got rid of a bunch of unneeded ones.) > I am investigating another tool chain with CLANG8.0 to > directly generate PE image. To differentiate them, I use the tool > chain name CLANG8ELF and CLANG8PE for them. Why do we want two different toolchain profiles that generate identical output in different ways, using the same tools? > >Also, it seems that the primary difference is using LLD instead of GNU > >ld, but this has nothing to do with the Clang version. > > > >What is the benefit of using LLD over GNU ld? It seems we are working > >around various incompatibilities, and I think this is only justified > >if LLD has some benefit over GNU ld. > > LLD is part of LLVM/CLANG8 tool set. User can get all required > compilers and linkers from > http://releases.llvm.org/download.html#8.0.0. > LLVM8 release includes Windows/Linux/Mac version. User can download > it and install them together. This tool chain is the unified tool > chain to be used in Windows/Linux/Mac OS. Can we note already build under all of these operating systems with the GNU binutils linker? When developing under Linux, I will use the toolchain provided by my distribution. / Leif