aboutsummaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-09-25 11:01:35 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-10-03 09:55:58 +1000
commit216433af16cdc441ef2b3d5bb0510570a1403e1c (patch)
tree0073d9e085b5b326268ada7a5fc4e042b4fccf6c /asm
parent9ddc1a6bfaef8669efd00b36fa1b699c04f6488d (diff)
downloadskiboot-216433af16cdc441ef2b3d5bb0510570a1403e1c.zip
skiboot-216433af16cdc441ef2b3d5bb0510570a1403e1c.tar.gz
skiboot-216433af16cdc441ef2b3d5bb0510570a1403e1c.tar.bz2
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 <npiggin@gmail.com> [oliver: commit message prefix] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'asm')
-rw-r--r--asm/head.S2
1 files changed, 2 insertions, 0 deletions
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
*/