From da591416ee8fddb1b691d157e3c61bdc7a994b79 Mon Sep 17 00:00:00 2001 From: Oliver Smith-Denny Date: Mon, 22 Jul 2024 15:50:50 -0700 Subject: BaseTools: Move GnuNoteBti.bin to BaseTools This patch moves GnuNoteBti.bin from ArmPkg to BaseTools as it is used during the build by GCC. This removes an unnecessary dependency on ArmPkg from BaseTools and keeps build related files in BaseTools. Signed-off-by: Oliver Smith-Denny --- BaseTools/Bin/GnuNoteBti.bin | Bin 0 -> 32 bytes BaseTools/Conf/tools_def.template | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 BaseTools/Bin/GnuNoteBti.bin (limited to 'BaseTools') diff --git a/BaseTools/Bin/GnuNoteBti.bin b/BaseTools/Bin/GnuNoteBti.bin new file mode 100644 index 0000000000..339567b4e8 Binary files /dev/null and b/BaseTools/Bin/GnuNoteBti.bin differ diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 8a2047e403..994cae2588 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -926,7 +926,7 @@ DEFINE GCC_IA32_RC_FLAGS = -I binary -O elf32-i386 -B i386 DEFINE GCC_X64_RC_FLAGS = -I binary -O elf64-x86-64 -B i386 --rename-section .data=.hii DEFINE GCC_ARM_RC_FLAGS = -I binary -O elf32-littlearm -B arm --rename-section .data=.hii DEFINE GCC_AARCH64_RC_FLAGS = -I binary -O elf64-littleaarch64 -B aarch64 --rename-section .data=.hii -DEFINE GCC_AARCH64_RC_BTI_FLAGS = --add-section .note.gnu.property=$(WORKSPACE)/ArmPkg/Library/GnuNoteBti.bin --set-section-flags .note.gnu.property=alloc,readonly +DEFINE GCC_AARCH64_RC_BTI_FLAGS = --add-section .note.gnu.property=$(WORKSPACE)/BaseTools/Bin/GnuNoteBti.bin --set-section-flags .note.gnu.property=alloc,readonly DEFINE GCC_RISCV64_RC_FLAGS = -I binary -O elf64-littleriscv -B riscv --rename-section .data=.hii DEFINE GCC_LOONGARCH64_RC_FLAGS = -I binary -O elf64-loongarch -B loongarch64 --rename-section .data=.hii -- cgit v1.2.3