From 906963ae7667ae06951e12c0f02032184a4e23fd Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 19 Jun 2012 22:52:18 +0200 Subject: rknanoutils: much more sensible format guess I finally found a sensible format for the executable files. The tool now can output the loading entry to elf files. Some disassembly and analysis suggest the phys/virt addresses are correct. However the entries are somehow linked and it is still unclear how (are there "calls" to the code ? when ?). Change-Id: Ied38b5bb297176c5755b5ecb3309f4a259c18cd4 --- utils/rknanoutils/rkboottool/misc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils/rknanoutils/rkboottool/misc.c') diff --git a/utils/rknanoutils/rkboottool/misc.c b/utils/rknanoutils/rkboottool/misc.c index b8644b3bf8..108235e7fd 100644 --- a/utils/rknanoutils/rkboottool/misc.c +++ b/utils/rknanoutils/rkboottool/misc.c @@ -34,6 +34,13 @@ char BLUE[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '4', 0x6d, '\0' }; static bool g_color_enable = true; +void *xmalloc(size_t s) +{ + void * r = malloc(s); + if(!r) bugp("malloc"); + return r; +} + void enable_color(bool enable) { g_color_enable = enable; -- cgit v1.2.3