From 8a68e8648b51d8506065cfb108a375bab015df05 Mon Sep 17 00:00:00 2001 From: Leon Chen Date: Fri, 5 Aug 2022 10:04:10 +0800 Subject: [PATCH] refactor(bl31): introduce vendor extend rodata section The purpose of including vendor extend plat.ld.rodata.inc linker script is for compactly collecting vendor rodata in intrinsic rodata section. If vendors define a standalone section and assign the section placed after __RW_END__, the raw bindry(bl31.bin) will include bss section with zero value and increase binary size. Signed-off-by: Leon Chen Change-Id: I46dd8b02bfb26af1dcca27f61b3ea29ca74bbbd6 --- bl31/bl31.ld.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S index 8a1573ab6..7708d5694 100644 --- a/bl31/bl31.ld.S +++ b/bl31/bl31.ld.S @@ -47,6 +47,10 @@ SECTIONS __RODATA_START__ = .; *(SORT_BY_ALIGNMENT(.rodata*)) +#if PLAT_EXTRA_RODATA_INCLUDES +#include +#endif + RODATA_COMMON /* Place pubsub sections for events */