diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-02-18 13:40:04 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-02-18 13:40:25 +0100 |
commit | 4362a7ba33810f569be68e9c4562a50f00b639a6 (patch) | |
tree | ee06896a147c4b4afb662410965a3968038f711f /utils/imxtools/sbtools/elftosb1.c | |
parent | ac9304299de66eaa8d534249b800c0c79501c676 (diff) |
imxtools/sbtools: add -jump command, fix help
Change-Id: I0d5d61c1dc137333bda5e403d06a43d16f2750bf
Diffstat (limited to 'utils/imxtools/sbtools/elftosb1.c')
-rw-r--r-- | utils/imxtools/sbtools/elftosb1.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/elftosb1.c b/utils/imxtools/sbtools/elftosb1.c index 02e986e1cd..20d4b55386 100644 --- a/utils/imxtools/sbtools/elftosb1.c +++ b/utils/imxtools/sbtools/elftosb1.c @@ -382,6 +382,11 @@ CMD_FN(cmd_call) return sb1_add_call(sb, args[0].uint, g_jump_arg); } +CMD_FN(cmd_jump) +{ + return sb1_add_jump(sb, args[0].uint, g_jump_arg); +} + CMD_FN(cmd_jumparg) { (void) sb; @@ -509,6 +514,7 @@ struct cmd_entry_t g_cmds[] = CMD("-v", cmd_component, 1, ARG_STR) CMD("-component", cmd_component, 1, ARG_STR) CMD("-k", cmd_keyfile, 1, ARG_STR) + CMD("-jump", cmd_jump, 1, ARG_UINT) }; #undef CMD @@ -572,6 +578,8 @@ static void usage(void) printf(" -C/-noncritical\t\tClear critical flag\n"); printf(" -n/-strict\t\t\tSet strict flag\n"); printf(" -N/-nonstrict\t\t\tClear strict flag\n"); + printf(" -call <addr>\t\tCall an address\n"); + printf(" -jump <addr>\t\tJump to an address\n"); exit(1); } |