Introduce BTI support in ROMLIB
authorJohn Tsichritzis <john.tsichritzis@arm.com>
Tue, 21 May 2019 14:47:37 +0000 (15:47 +0100)
committerJohn Tsichritzis <john.tsichritzis@arm.com>
Fri, 24 May 2019 11:36:52 +0000 (12:36 +0100)
commitbbb24f611c92ada192ed7a6825da8b477fd6bcfb
tree42047e91ddba7294625ad3bdc85397e0d4f9d10a
parentced1711297347f24fee45e75e73c7767507a0982
Introduce BTI support in ROMLIB

When TF-A is compiled with BTI enabled, the branches in the ROMLIB
jumptable must be preceded by a "bti j" instruction.

Moreover, when the additional "bti" instruction is inserted, the
jumptable entries have a distance of 8 bytes between them instead of 4.
Hence, the wrappers are also modified accordinly.

If TF-A is compiled without BTI enabled, the ROMLIB jumptable and
wrappers are generated as before.

Change-Id: Iaa59897668f8e59888d39046233300c2241d8de7
Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
Makefile
lib/romlib/Makefile
lib/romlib/gentbl.sh
lib/romlib/genwrappers.sh