]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
plat: xilinx: Use fno-jump-tables flag in CPPFLAGS
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Tue, 14 Jul 2020 03:18:01 +0000 (21:18 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 12 Nov 2020 09:40:16 +0000 (10:40 +0100)
From GCC-9 implementation of switch case was generated through jump tables,
because of which we are seeing 1MB increase in rodata section. To reduce
the size we are recommending to use fno-jump-tables.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Change-Id: I069733610809b8299fbf641f0ae35b359a8afd69

plat/xilinx/zynqmp/platform.mk

index 44f20f69f62ad1dfeff04e413d2edb108956b039..194e72dc7570d0d4c24eae55a2e28c00c21dfd37 100644 (file)
@@ -95,6 +95,8 @@ BL31_SOURCES          +=      drivers/arm/cci/cci.c                           \
                                plat/xilinx/zynqmp/pm_service/pm_api_clock.c    \
                                plat/xilinx/zynqmp/pm_service/pm_client.c
 
+BL31_CPPFLAGS          +=      -fno-jump-tables
+
 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.")
 endif