From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web12.30323.1590411355884561759 for ; Mon, 25 May 2020 05:55:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hn9rT9VD; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590411355; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=gWiIlXMI7NXXhY+6qBKMsj8c3DGd3L521B4cxo+aJcg=; b=hn9rT9VDezcy353WVmIBYijckS5UBoB8De3Sk2th6VkIposGPWldLG37zVIbH7UMFfzVVK dyJqFWOevAJI6zp20cUnQg/KXrB0BaNDX2vGNcT9WXL7DGsB2wKUi8+E6J/xF22p1RoH22 xVUHXj7QCxM3bRwB1KrlzG5MO1Gi44A= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-101-icqLpQ7qNRylp5d_VykH0Q-1; Mon, 25 May 2020 08:55:47 -0400 X-MC-Unique: icqLpQ7qNRylp5d_VykH0Q-1 Received: by mail-wm1-f70.google.com with SMTP id e15so3106133wme.1 for ; Mon, 25 May 2020 05:55:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=gWiIlXMI7NXXhY+6qBKMsj8c3DGd3L521B4cxo+aJcg=; b=d6ZM1y5xyTxaSVGasEd1zN8R0x/N2rnRqHhi+vD0jN03xdJOFLGFBAdDHsamhDqx0m VAf0fz2CWPx5SYpqpB9e/vyqc1tdXwxczi0biVUM02HzijFknJhdY4L9SGfpHx7XYPRv OzIA1ClpFpPXeXG/jeCKKt3rtfClUc9gOAEtsYgME45EH/aiLMIjafgaj3xLr0l7UACD 8dtUoEuiJ/1voHaeg2SZTliviXpEEtfyUkH2L6yA7dtcT3LIzEh8XXP006Pd2s+86URp Vu7JcswlG21dqdSdYiGe8yZS6LSQPrczMCn4W4Aa3iuYZTa6PKHrQ9YU1ccXKzASocso NIbA== X-Gm-Message-State: AOAM532j5Op7vny7u+PMzPY9XA1LG+9156vhnTvPcIlkc0ibcL1yEL2u E7O9X/itOQuq0NKjsLf9m9th4PMRjVuc3ReNbUlimj27NMa0kPavSiNwyOP3WzoNYjUbVBDh6CP /8aHJGpzLfEEajw== X-Received: by 2002:a5d:460d:: with SMTP id t13mr15913350wrq.280.1590411346374; Mon, 25 May 2020 05:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybr3LhIdYU7Gakk1gRqUKWTLUWhO0V6dW55L2CoLaGyk3CPBNKaWM/hizMunRyJRG/57rr0A== X-Received: by 2002:a5d:460d:: with SMTP id t13mr15913344wrq.280.1590411346222; Mon, 25 May 2020 05:55:46 -0700 (PDT) Return-Path: Received: from [192.168.1.36] (71.red-88-21-204.staticip.rima-tde.net. [88.21.204.71]) by smtp.gmail.com with ESMTPSA id g82sm1667202wmf.1.2020.05.25.05.55.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 May 2020 05:55:45 -0700 (PDT) Subject: Re: [edk2-devel] [PATCH 1/1] BaseTools: Turn on Link Time Optimization (LTO) for XCOODE To: devel@edk2.groups.io, afish@apple.com Cc: Liming Gao , Zhiguang Liu References: From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= Autocrypt: addr=philmd@redhat.com; keydata= mQINBDXML8YBEADXCtUkDBKQvNsQA7sD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emRdiBd6102ThqgIsyGEBXuf1sy0QIVyXgaqr9O2b/0VoXpQId7yY7OJuYYxs7kQoXI 6WzSMpmuXGkmfxOgbc/L6YbzB0JOriX0iRClxu4dEUg8Bs2pNnr6huY2Ft+qb41RzCJvvMyu gS32LfN0bTZ6Qm2A8ayMtUQgnwZDSO23OKgQWZVglGliY3ezHZ6lVwC24Vjkmq/2yBSLakZE 6DZUjZzCW1nvtRK05ebyK6tofRsx8xB8pL/kcBb9nCuh70aLR+5cmE41X4O+MVJbwfP5s/RW 9BFSL3qgXuXso/3XuWTQjJJGgKhB6xXjMmb1J4q/h5IuVV4juv1Fem9sfmyrh+Wi5V1IzKI7 RPJ3KVb937eBgSENk53P0gUorwzUcO+ASEo3Z1cBKkJSPigDbeEjVfXQMzNt0oDRzpQqH2vp apo2jHnidWt8BsckuWZpxcZ9+/9obQ55DyVQHGiTN39hkETy3Emdnz1JVHTU0Q== Message-ID: Date: Mon, 25 May 2020 14:55:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 5/25/20 4:38 AM, Andrew Fish via groups.io wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1202 > > Turn on LTO for XCODE. Typo "XCOODE" in subject. If you want to keep it, I wont object :) > > We need to pass -object_path_lto to the linker to keep source > level debugging working. > > OVMF X64 before: > SECFV [14%Full] 212992 total, 30224 used, 182768 free > PEIFV [29%Full] 917504 total, 273256 used, 644248 free > DXEFV [40%Full] 12582912 total, 5096904 used, 7486008 free > FVMAIN_COMPACT [37%Full] 3440640 total, 1290240 used, 2150400 free > > After: > SECFV [10%Full] 212992 total, 23064 used, 189928 free > PEIFV [20%Full] 917504 total, 192328 used, 725176 free > DXEFV [33%Full] 12582912 total, 4193632 used, 8389280 free > FVMAIN_COMPACT [33%Full] 3440640 total, 1165352 used, 2275288 free > > Signed-off-by: Andrew Fish > Cc: Liming Gao > Cc: Zhiguang Liu > --- > BaseTools/Conf/tools_def.template | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-)