]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
refactor(bl31): introduce vendor extend rodata section
authorLeon Chen <leon.chen@mediatek.com>
Fri, 5 Aug 2022 02:04:10 +0000 (10:04 +0800)
committerleon chen <leon.chen@mediatek.com>
Tue, 9 Aug 2022 09:39:11 +0000 (11:39 +0200)
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 <leon.chen@mediatek.com>
Change-Id: I46dd8b02bfb26af1dcca27f61b3ea29ca74bbbd6

bl31/bl31.ld.S

index 8a1573ab61c88678caa506beb21148d944ee0f30..7708d569496659475a3a10fa70c78fec732379ce 100644 (file)
@@ -47,6 +47,10 @@ SECTIONS
         __RODATA_START__ = .;
         *(SORT_BY_ALIGNMENT(.rodata*))
 
+#if PLAT_EXTRA_RODATA_INCLUDES
+#include <plat.ld.rodata.inc>
+#endif
+
        RODATA_COMMON
 
         /* Place pubsub sections for events */