From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web09.46518.1643709321763125461 for ; Tue, 01 Feb 2022 01:55:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fninqKG3; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643709320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LlARVA0NUHzbdi+jJEn8y12aWAl8GO81pMdLk+6glNI=; b=fninqKG3Ey+cb/6QJFznQnglFu564pkLOwRQlvN/UTEUyktVkr3mXL+eLYPkxYDWkGB6Zf oiQwmQglb0+AKCeybp6iWoc9rbGoJY6N/GaHdE/WIpYJfD/5SD1F4xKgQX39+kEs+zRe18 KrFytNlIqPStuGcF76h//oHlnVqJAiI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-592-9EuHUyBYMzeuqKL_DVAbFg-1; Tue, 01 Feb 2022 04:55:16 -0500 X-MC-Unique: 9EuHUyBYMzeuqKL_DVAbFg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 55AD085B6CD; Tue, 1 Feb 2022 09:55:14 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.47]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 39E1F7B6D5; Tue, 1 Feb 2022 09:55:10 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7C0831800632; Tue, 1 Feb 2022 10:55:08 +0100 (CET) Date: Tue, 1 Feb 2022 10:55:08 +0100 From: "Gerd Hoffmann" To: Kilian Kegel Cc: "devel@edk2.groups.io" , "afish@apple.com" , Mike Kinney , "Yao, Jiewen" , Sean Brogan , Bret Barkelew , "Wang, Jian J" , "Jiang, Guomin" , Pawel Polawski , "Lu, XiaoyuX" , Pedro Falcato Subject: Re: [edk2-devel] [PATCH 00/24] CryptoPkg/openssl: update openssl submodule to v3.0 Message-ID: <20220201095508.eorg5r25nbp6ms4i@sirius.home.kraxel.org> References: <20220121083035.dsqzu3akshonliza@sirius.home.kraxel.org> <20220126110244.klk24znojvdtirzw@sirius.home.kraxel.org> <71737233-2840-42CE-A65E-1895E936B4CB@apple.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > That means I believe GCCINTRINx86-32.lib, CLANGINTRINx86-32.lib and XCODEINTRINx86-32.lib could be simply created > using these files her: > https://opensource.apple.com/source/clang/clang-600.0.57/src/projects/compiler-rt/lib/i386/ > or > https://github.com/llvm/llvm-project/tree/main/compiler-rt/lib/builtins/i386 > Than we have the space saving assembler implementation for all GCC derivates. Yes, using the source and compiling our own probably works better because we don't run into abi problems that way. > BTW: Microsoft source is leaked here: > https://github.com/microsoft/Ironclad/blob/main/ironclad-apps/src/Checked/BootLoader/SingLdrPc/x86/blcrtasm.asm I doubt using leaked sources is a good idea from a legal/licensing point of view ... > There is also a library INT64.LIB in the current Windows 10 SDK, and also in the old WinDDK 7600. > C:\WinDDK\7600.16385.1\lib\wxp\i386\int64.lib ... but if there is a library with only the 64bit math intrinsics and nothing else it is maybe easy enough to use the library as-is when building with the microsoft compiler. take care, Gerd