Andrew:
  Yes. GenFw has -z option to clear debug entry data as zero. I try GenFw with 
-e PEIM –z together. But, I find the generated EFI image is wrong. I have 
submitted BZ https://bugzilla.tianocore.org/show_bug.cgi?id=1727 for it. I will 
fix it.

Thanks
Liming
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew 
Fish via Groups.Io
Sent: Thursday, April 18, 2019 1:36 AM
To: [email protected]; Gao, Liming <[email protected]>
Cc: [email protected]
Subject: Re: [edk2-devel] Remove debug strings from OVMF.fd




On Apr 16, 2019, at 11:52 PM, Liming Gao 
<[email protected]<mailto:[email protected]>> wrote:

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


Liming,

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 remove it?

Thanks,

Andrew Fish



Thanks
Liming
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Pedro Barbosa
Sent: Tuesday, April 16, 2019 11:46 PM
To: [email protected]<mailto:[email protected]>
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 RELEASE, I 
still can see some strings on the PE files, such as:
<my-edk2-folder>/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!

--
[]s

Pedro Yóssis Silva Barbosa
Security Engineer, Google
PhD in Computer Science, UFCG, Brazil
sites.google.com/site/pedroysb<http://sites.google.com/site/pedroysb>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#39277): https://edk2.groups.io/g/devel/message/39277
Mute This Topic: https://groups.io/mt/31202062/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to