Interesting work, I also tried earlier this year, but I did not manage to get something working quickly enough. I had to postpone this task.
I had a quick look at the patch, I guess these changes: DEFINE GCC49_ARM_DEBUG_FLAGS = -O0 DEFINE GCC49_ARM_RELEASE_FLAGS = -Wno-unused-but-set-variable DEFINE GCC49_AARCH64_DEBUG_FLAGS = -O0 DEFINE GCC49_AARCH64_RELEASE_FLAGS = -Wno-unused-but-set-variable ... is to fix the ShellPkg build error I raised 10 days ago. Your patch looks to work fine in our CI with AArch64. But interestingly I have this build error with ARM GCC48: "/arm/tools/arm/gcc-arm-none-eabi/4_8-2014q2/bin/arm-none-eabi-gcc" -mthumb -march=armv7-a -g -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -DSTRING_ARRAY_NAME=BaseMemoryLibStmStrings -g -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -mword-relocations -mlittle-endian -mabi=aapcs -mapcs -fno-short-enums -save-temps -fsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=soft -mno-unaligned-access -fstack-protector -Wno-unused-but-set-variable -o /Build/ArmPlatform/RELEASE_GCC48/ARM/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm/OUTPUT/./ScanMem64Wrapper.obj -I/ArmPkg/Library/BaseMemoryLibStm/Arm -I/ArmPkg/Library/BaseMemoryLibStm -I/Build/ArmPlatform/RELEASE_GCC48/ARM/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm/DEBUG -I/MdePkg -I/MdePkg/Include -I/MdePkg/Include/Arm /ArmPkg/Library/BaseMemoryLibStm/ScanMem64Wrapp er.c /arm/tools/arm/gcc-arm-none-eabi/4_8-2014q2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: cannot find -lssp_nonshared /arm/tools/arm/gcc-arm-none-eabi/4_8-2014q2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: cannot find -lssp collect2: error: ld returned 1 exit status I have not investigated much this issue, but I would not be surprise if it is due to the fact you removed '-c' from 'GCC_ALL_CC_FLAGS'. ________________________________________ From: Scott Duplichan [[email protected]] Sent: 07 November 2014 06:05 To: [email protected] Subject: [edk2] Status of gcc link time optimization for EDK2 use http://notabs.org/uefi/gcc-lto.htm Thanks, Scott ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782 ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
