assert: switch from ASSERT(0/false) to PANIC

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2023-01-25 23:53:57 +02:00
committed by Xiang Xiao
parent 1280a2a8f9
commit f952b8456c
16 changed files with 33 additions and 29 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ int up_relocateadd(const Elf_Rela *rel, const Elf_Sym *sym,
default:
berr("ERROR: Unsupported relocation: %ld\n",
ARCH_ELF_RELTYPE(rel->r_info));
ASSERT(false);
PANIC();
return -EINVAL;
}