On Sat, 20 Aug 2022 at 01:35, Rebecca Cran <rebe...@bsdio.com> wrote: > > I have an armplatbld.sh script that goes through and tries to build as many > of the Arm (AARCH64 and ARM) platforms in edk2-platforms as possible. > > I'm think this used to work for these, but I'm getting some errors now. > > I'm using edk2-platforms 46686eeb7e78efe603badd86f13777d9fb070fb8 and edk2 > e2ac68a23b4954d5c0399913a1df3dd9fd90315d. > > > Drivers/ASIX/Asix.dsc (fails with undefined references to __stack_chk_guard > and __stack_chk_fail) > > Drivers/DisplayLink/DisplayLinkPkg/DisplayLinkPkg.dsc (fails with undefined > references to __stack_chk_guard and __stack_chk_fail) > Platform/Socionext/DeveloperBox/DeveloperBoxMm.dsc (fails with bad definition > for symbol '_GLOBAL_OFFSET_TABLE_'@0x72d8 or unsupported symbol type. For > example, absolute and undefined symbols are not supported.) > > Drivers/StandaloneMmCpu/StandaloneMmCpu (fails with undefined references to > __stack_chk_guard and __stack_chk_fail) > Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc > (fails with bad definition for symbol '_GLOBAL_OFFSET_TABLE_'@0x72d8 or > unsupported symbol type. For example, absolute and undefined symbols are not > supported.) >
Hello Rebecca, Which compiler and linker are you using? The *Mm.dsc targets are a bit tricky to build, as they self-relocate while running in a secure partition, which has restrictions in terms of memory permissions. I don't remember the exact details, but it is likely we never bothered to test Clang, and Visual Studio definitely doesn't work. As for the stack protector - as you already identified, this is a matter of adding the appropriate NULL library class resolution. The heuristics regarding which functions need a stack cookie and which don't is not set in stone, nor is the default strength, which can vary per compiler build between distros. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#92593): https://edk2.groups.io/g/devel/message/92593 Mute This Topic: https://groups.io/mt/93135586/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-