From 216433af16cdc441ef2b3d5bb0510570a1403e1c Mon Sep 17 00:00:00 2001 From: Nicholas Piggin Date: Wed, 25 Sep 2019 11:01:35 +1000 Subject: core/util: branch-to-NULL assert for ELFv2 ABI The ELFv1 branch to NULL catcher puts a function descriptor at 0 which points to a function that asserts. For ELFv2, put a trap at address 0. Signed-off-by: Nicholas Piggin [oliver: commit message prefix] Signed-off-by: Oliver O'Halloran --- asm/head.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asm') diff --git a/asm/head.S b/asm/head.S index e78dc52..58f9aea 100644 --- a/asm/head.S +++ b/asm/head.S @@ -35,6 +35,8 @@ . = 0 .global __head __head: + trap + /* This entry point is used when booting with a flat device-tree * pointer in r3 */ -- cgit v1.1