[edk2-devel] [PATCH v6 edk2-platforms 1/1] Silicon/Synopsys/Designware/Driver: DwEmacSnpDxe: Add DesignWare EMAC driver
Ooi, Tzy Way
tzy.way.ooi at intel.com
Fri Jul 19 06:41:02 UTC 2019
Hi Leif,
Thank you very much. The solution provided help to resolve the issue.
Best regards,
Tzy Way
-----Original Message-----
From: Leif Lindholm <leif.lindholm at linaro.org>
Sent: Wednesday, July 17, 2019 7:44 PM
To: Ooi, Tzy Way <tzy.way.ooi at intel.com>
Cc: devel at edk2.groups.io; Ard BieSheuvel <ard.biesheuvel at linaro.org>; Kinney, Michael D <michael.d.kinney at intel.com>; Loh, Tien Hock <tien.hock.loh at intel.com>
Subject: Re: [edk2-devel] [PATCH v6 edk2-platforms 1/1] Silicon/Synopsys/Designware/Driver: DwEmacSnpDxe: Add DesignWare EMAC driver
Hi Tzy Way,
On Wed, Jul 17, 2019 at 09:25:49AM +0000, Ooi, Tzy Way wrote:
> Ya. I am on Linux. I managed to replicated the warning that you have
> provided in the previous email thread by using the gcc 8.3.
Excellent.
> Currently, I'm looking at the compiler warning/error. While I am
> fixing the issue when compiling the source code, I encountered another
> issue where the compiler complain "undefined reference to
> __stack_chk_fail". I check from google and it can be solved by setting
> -fnostack-protector. Hence, I would like to ask if is it ok to set
> this to the CFLAGs for the compiler?
We don't need that workaround - since we have a proper way of handling it in MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
Adding a NULL resolution to the appropriate [LibraryClasses] section in the .dsc should resolve this for you.
See (for example) edk2/EmbeddedPkg/EmbeddedPkg.dsc for guidance.
Best Regards,
Leif
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#44013): https://edk2.groups.io/g/devel/message/44013
Mute This Topic: https://groups.io/mt/32389522/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list