From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=YaBCMVAX; spf=pass (domain: apple.com, ip: 17.151.62.66, mailfrom: afish@apple.com) Received: from nwk-aaemail-lapp01.apple.com (nwk-aaemail-lapp01.apple.com [17.151.62.66]) by groups.io with SMTP; Wed, 17 Apr 2019 10:35:58 -0700 Received: from pps.filterd (nwk-aaemail-lapp01.apple.com [127.0.0.1]) by nwk-aaemail-lapp01.apple.com (8.16.0.27/8.16.0.27) with SMTP id x3HHQWG8005072; Wed, 17 Apr 2019 10:35:57 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=mime-version : content-type : sender : from : message-id : subject : date : in-reply-to : cc : to : references; s=20180706; bh=qTxkRVU4AhgxOi/yzh5Np5f5XHH8e/MtEIVWLq1DO7U=; b=YaBCMVAXv3YISn7gIRqA9aOaWHNGdExkLOho6GFIw9HOTHdeH3tDv8DTrbqDLAQk901H EbZ8rkdrMJ5dcx5S3oVzl5BbH5bGK+TgWptpaVtfsZITWiZ1/X5OdqGJBGDDoccfez4f lBCFU9r8waAgCG6L1xbZUNR/zLUiMhqaFp1vuLvtiIeO9X7z+3RvGSgAYp6tdNDOQ1OL 1Ks5Vbm2J9bc8gr4zZ/MoLKWuDLKciQwFSWVHzUjP6G0NoRweR2mNYpVenIkXAocse9J 8dHHznX5grQOU6AeZwTcPDGhWcsVWTRKSTlTPYwV4PVtr6PAeqgqLlo/ZbMUL0dC4gwr nw== Received: from ma1-mtap-s01.corp.apple.com (ma1-mtap-s01.corp.apple.com [17.40.76.5]) by nwk-aaemail-lapp01.apple.com with ESMTP id 2rueq59ph3-9 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 17 Apr 2019 10:35:57 -0700 MIME-version: 1.0 Received: from nwk-mmpp-sz13.apple.com (nwk-mmpp-sz13.apple.com [17.128.115.216]) by ma1-mtap-s01.corp.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPS id <0PQ4006458VUEB20@ma1-mtap-s01.corp.apple.com>; Wed, 17 Apr 2019 10:35:56 -0700 (PDT) Received: from process_milters-daemon.nwk-mmpp-sz13.apple.com by nwk-mmpp-sz13.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) id <0PQ4003008RG9R00@nwk-mmpp-sz13.apple.com>; Wed, 17 Apr 2019 10:35:55 -0700 (PDT) X-Va-A: X-Va-T-CD: 7daa14ab80d2839c17f099a8fda5373c X-Va-E-CD: 14eaadd8ee2b4de2f749c2aa94dfd5d5 X-Va-R-CD: dc71f010bfddf555e8b320e35ccf2feb X-Va-CD: 0 X-Va-ID: 863a7048-293f-42cb-9920-b6353fd249b7 X-V-A: X-V-T-CD: 98e262f3d41ed2218ef8f9253e109c8a X-V-E-CD: 14eaadd8ee2b4de2f749c2aa94dfd5d5 X-V-R-CD: dc71f010bfddf555e8b320e35ccf2feb X-V-CD: 0 X-V-ID: c1629450-056d-4251-936d-d2ab4a27780b X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-17_07:,, signatures=0 Received: from [17.226.41.197] (unknown [17.226.41.197]) by nwk-mmpp-sz13.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPSA id <0PQ4005Y58VVEQ20@nwk-mmpp-sz13.apple.com>; Wed, 17 Apr 2019 10:35:55 -0700 (PDT) Sender: afish@apple.com From: "Andrew Fish" Message-id: <6F103736-341C-44C8-93B9-DEAA703857EA@apple.com> Subject: Re: [edk2-devel] Remove debug strings from OVMF.fd Date: Wed, 17 Apr 2019 10:35:49 -0700 In-reply-to: <4A89E2EF3DFEDB4C8BFDE51014F606A14E42A041@SHSMSX104.ccr.corp.intel.com> Cc: "pedroyossis@gmail.com" To: devel@edk2.groups.io, Liming Gao References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E42A041@SHSMSX104.ccr.corp.intel.com> X-Mailer: Apple Mail (2.3445.6.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-17_07:,, signatures=0 Content-type: multipart/alternative; boundary="Boundary_(ID_8cWuUZaau+RPyHTE7QRzdw)" --Boundary_(ID_8cWuUZaau+RPyHTE7QRzdw) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable > On Apr 16, 2019, at 11:52 PM, Liming Gao wrote: >=20 > /Build/OvmfX64/RELEASE_GCC5/X64/MdeModulePkg/Application= /UiApp/UiApp/DEBUG/UiApp.dll is generated by GenFw tool. When GenFw tool co= nvert ELF image to EFI image, it inserts the debug entry with the below str= ing. > =C2=A0 <> Liming, Is there a way to turn it off? Does it follow the -g flag passed to the co= mpiler? Can you post process with GenFw --zero to remove it?=20 Thanks, Andrew Fish > Thanks > Liming > <>From: devel@edk2.groups.io [mailto:deve= l@edk2.groups.io ] On Behalf Of Pedro Barbosa > Sent: Tuesday, April 16, 2019 11:46 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] Remove debug strings from OVMF.fd > > Hi EDK2 developers, > > I'm trying to build OVMF without debug symbols but even building as RELE= ASE, I still can see some strings on the PE files, such as: > /Build/OvmfX64/RELEASE_GCC5/X64/MdeModulePkg/Application= /UiApp/UiApp/DEBUG/UiApp.dll > and many others in the format */DEBUG/*.dll > > Is there a way to build without these strings? > > Thanks! > > --=20 > []s >=20 > Pedro Y=C3=B3ssis Silva Barbosa > Security Engineer, Google > PhD in Computer Science, UFCG, Brazil > sites.google.com/site/pedroysb >=20 --Boundary_(ID_8cWuUZaau+RPyHTE7QRzdw) Content-type: text/html; charset=utf-8 Content-transfer-encoding: quoted-printable

On Apr 16, 2= 019, at 11:52 PM, Liming Gao <liming.gao@intel.com> wrote:

<my-edk2-folder>/Build/OvmfX64/RELEASE_GCC5/= X64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll is generated by Ge= nFw tool. When GenFw tool convert ELF image to EFI image, it inserts the de= bug entry with the below string.
=

Liming,
<= br class=3D"">
Is there a way to turn it off? Does it follow the = -g flag passed to the compiler? Can you post process with GenFw --zero to r= emove it? 

Thanks,

Andrew Fish


Thanks
Liming
From: devel@edk2.groups.io=  [mailto:devel@edk2.groups.io] On Behalf Of Pedro Barbosa
Sent: 
Tuesday, April 16, 2019 11:= 46 PM
To: devel@edk2.groups.io
Subject:&= nbsp;[edk2-devel] Remove debug strings from OVMF.fd<= /o:p>
 
Hi EDK2 developers,=
 
I'm trying to build OVMF without debug symbols but even building as = RELEASE, I still can see some strings on the PE files, such as:
= <my-edk2-folder>/Build/OvmfX64/RELEAS= E_GCC5/X64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll
= and many others in the format */DEBUG/*.dll=
 
Is there a way to build without these strings?=
 
Tha= nks!
 
-- 
[]s

Pedro Y=C3=B3ssi= s Silva Barbosa
Security Engineer, Goo= gle
PhD in Computer Science, UFCG, = Brazil

<= /div>

--Boundary_(ID_8cWuUZaau+RPyHTE7QRzdw)--