Factor xlat_table sections in linker scripts out into a header file
TF-A has so many linker scripts, at least one linker script for each BL
image, and some platforms have their own ones. They duplicate quite
similar code (and comments).

When we add some changes to linker scripts, we end up with touching
so many files. This is not nice in the maintainability perspective.

When you look at Linux kernel, the common code is macrofied in
include/asm-generic/vmlinux.lds.h, which is included from each arch
linker script, arch/*/kernel/vmlinux.lds.S

TF-A can follow this approach. Let's factor out the common code into
include/common/bl_common.ld.h

As a start point, this commit factors out the xlat_table section.

Change-Id: Ifa369e9b48e8e12702535d721cc2a16d12397895
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent e282245 commit 665e71b8ea28162ec7737c1411bca3ea89e5957e
@Masahiro Yamada Masahiro Yamada authored on 9 Mar 2020
Showing 9 changed files
View
bl1/bl1.ld.S
View
bl2/bl2.ld.S
View
bl2/bl2_el3.ld.S
View
bl2u/bl2u.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 0 → 100644
View
plat/mediatek/mt6795/bl31.ld.S