diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-09-25 11:01:35 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-10-03 09:55:58 +1000 |
commit | 216433af16cdc441ef2b3d5bb0510570a1403e1c (patch) | |
tree | 0073d9e085b5b326268ada7a5fc4e042b4fccf6c /asm | |
parent | 9ddc1a6bfaef8669efd00b36fa1b699c04f6488d (diff) | |
download | skiboot-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.S | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -35,6 +35,8 @@ . = 0 .global __head __head: + trap + /* This entry point is used when booting with a flat device-tree * pointer in r3 */ |