mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00
feat(plat/zynqmp): disable the -mbranch-protection flag
With new gcc11.2 by default the -mbranch-protection is set to "standard" which is leading to increase the text section by 4Kb. As the ZynqMP uses the ARMv8 architecture, so there is no impact when we disable the branch protection. These instructions do not provide the branch protection in architectures before Armv8.3-A. Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Acked-by: Michal Simek <michal.simek@xilinx.com> Change-Id: I36f7a55abf99f50df2ee265255598d83b1f480c6
This commit is contained in:
parent
3210a434d4
commit
67abd4762b
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ BL31_SOURCES += plat/xilinx/zynqmp/zynqmp_ehf.c \
|
|||
endif
|
||||
|
||||
BL31_CPPFLAGS += -fno-jump-tables
|
||||
TF_CFLAGS_aarch64 += -mbranch-protection=none
|
||||
|
||||
ifneq (${RESET_TO_BL31},1)
|
||||
$(error "Using BL31 as the reset vector is only one option supported on ZynqMP. Please set RESET_TO_BL31 to 1.")
|
||||
|
|
Loading…
Add table
Reference in a new issue