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 (#43876): https://edk2.groups.io/g/devel/message/43876 Mute This Topic: https://groups.io/mt/32389522/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-