xlat_tables_v2: fix assembler warning of PLAT_RO_XLAT_TABLES
If PLAT_RO_XLAT_TABLES is defined, the base xlat table goes to the
.rodata section instead of .bss section.

This causes a warning like:

/tmp/ccswitLr.s: Assembler messages:
/tmp/ccswitLr.s:297: Warning: setting incorrect section attributes for .rodata

It is practically no problem, but I want to keep the build log clean.

Put the base table into the "base_xlat_table" section to suppress the
assembler warnings.

The linker script determines its final destination; rodata section if
PLAT_RO_XLAT_TABLES=1, or bss section otherwise. So, the result is the
same.

Change-Id: Ic85d1d2dddd9b5339289fc2378cbcb21dd7db02e
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent a7739bc commit 268131c24fedb804589a2226d4adb3ef97cd8874
@Masahiro Yamada Masahiro Yamada authored on 26 Mar 2020
Showing 3 changed files
View
include/common/bl_common.ld.h
View
include/lib/xlat_tables/xlat_tables_v2.h
View
lib/xlat_tables_v2/xlat_tables_context.c