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