linker_script: move more common code to bl_common.ld.h
These are mostly used to collect data from special structure,
and repeated in many linker scripts.

To differentiate the alignment size between aarch32/aarch64, I added
a new macro STRUCT_ALIGN.

While I moved the PMF_SVC_DESCS, I dropped #if ENABLE_PMF conditional.
As you can see in include/lib/pmf/pmf_helpers.h, PMF_REGISTER_SERVICE*
are no-op when ENABLE_PMF=0. So, pmf_svc_descs and pmf_timestamp_array
data are not populated.

Change-Id: I3f4ab7fa18f76339f1789103407ba76bda7e56d0
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 0a43db8 commit 9fb288a03ed2ced7706defbbf78f008e921e17e2
@Masahiro Yamada Masahiro Yamada authored on 25 Mar 2020
Showing 8 changed files
View
bl1/bl1.ld.S
View
bl2/bl2.ld.S
View
bl2/bl2_el3.ld.S
View
bl31/bl31.ld.S
View
bl32/sp_min/sp_min.ld.S
View
bl32/tsp/tsp.ld.S
View
include/common/bl_common.ld.h
View
plat/mediatek/mt6795/bl31.ld.S