Add UBSAN support and handlers
authorJustin Chadwell <justin.chadwell@arm.com>
Tue, 20 Aug 2019 10:01:52 +0000 (11:01 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Wed, 11 Sep 2019 13:15:54 +0000 (14:15 +0100)
commit1f4619796af5baf4b41b5723bbf708355f8597fa
tree0c1293905f4c922c53a1b2f8ea999f9da65f9841
parent5dbdf8e4eac1d5999f07976f9f430894b0784907
Add UBSAN support and handlers

This patch adds support for the Undefined Behaviour sanitizer. There are
two types of support offered - minimalistic trapping support which
essentially immediately crashes on undefined behaviour and full support
with full debug messages.

The full support relies on ubsan.c which has been adapted from code used
by OPTEE.

Change-Id: I417c810f4fc43dcb56db6a6a555bfd0b38440727
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
Makefile
bl31/aarch64/runtime_exceptions.S
docs/getting_started/user-guide.rst
include/arch/aarch64/arch.h
make_helpers/defaults.mk
plat/common/ubsan.c [new file with mode: 0644]