Thanks Laszlo and Bruce!

I sent a V2 to add "NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG     = 
--add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug"

Best Regards,
Zhu Yonghong

-----Original Message-----
From: edk2-devel [mailto:[email protected]] On Behalf Of Laszlo 
Ersek
Sent: Tuesday, October 4, 2016 12:53 AM
To: Bruce Cran <[email protected]>; Ard Biesheuvel <[email protected]>
Cc: Justen, Jordan L <[email protected]>; [email protected]; Gao, 
Liming <[email protected]>; [email protected]
Subject: Re: [edk2] [Patch] BaseTools: support the NOOPT target with the GCC 
tool chains

On 10/03/16 18:13, Bruce Cran wrote:
> On 10/3/2016 10:09 AM, Laszlo Ersek wrote:
> 
>> "BaseTools/Scripts/GccBase.lds" discards the gnu_debuglink section -- 
>> intentionally, from commit efe690cab3fb5 ("BaseTools GCC: add unified 
>> GCC linker script for all archs and versions").
>>
>> If this section is necessary for debugging, then why does the DEBUG 
>> build work? In other words, why does the DEBUG build contain 
>> gnu_debuglink despite the discard rule? Ard, any idea?
> 
> tools_def.template contains a command to add it:
> 
> DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG     =
> --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug
> 
> I've followed up with the original email to say that adding a NOOPT 
> line fixes debugging for me.
> 

Thank you, perfect!
Laszlo
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to