-
- Downloads
linker_script: move bss section to bl_common.ld.h
Move the bss section to the common header. This adds BAKERY_LOCK_NORMAL
and PMF_TIMESTAMP, which previously existed only in BL31. This is not
a big deal because unused data should not be compiled in the first
place. I believe this should be controlled by BL*_SOURCES in Makefiles,
not by linker scripts.
I investigated BL1, BL2, BL2U, BL31 for plat=fvp, and BL2-AT-EL3,
BL31, BL31 for plat=uniphier. I did not see any more unexpected
code addition.
The bss section has bigger alignment. I added BSS_ALIGN for this.
Currently, SORT_BY_ALIGNMENT() is missing in sp_min.ld.S, and with this
change, the BSS symbols in SP_MIN will be sorted by the alignment.
This is not a big deal (or, even better in terms of the image size).
Change-Id: I680ee61f84067a559bac0757f9d03e73119beb33
Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
Showing
- bl1/bl1.ld.S 1 addition, 12 deletionsbl1/bl1.ld.S
- bl2/bl2.ld.S 1 addition, 12 deletionsbl2/bl2.ld.S
- bl2/bl2_el3.ld.S 1 addition, 12 deletionsbl2/bl2_el3.ld.S
- bl2u/bl2u.ld.S 1 addition, 12 deletionsbl2u/bl2u.ld.S
- bl31/bl31.ld.S 1 addition, 14 deletionsbl31/bl31.ld.S
- bl32/sp_min/sp_min.ld.S 1 addition, 14 deletionsbl32/sp_min/sp_min.ld.S
- bl32/tsp/tsp.ld.S 1 addition, 12 deletionsbl32/tsp/tsp.ld.S
- include/common/bl_common.ld.h 18 additions, 0 deletionsinclude/common/bl_common.ld.h
- plat/mediatek/mt6795/bl31.ld.S 2 additions, 13 deletionsplat/mediatek/mt6795/bl31.ld.S
Loading
Please register or sign in to comment