summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-02-18 13:40:04 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2013-02-18 13:40:25 +0100
commit4362a7ba33810f569be68e9c4562a50f00b639a6 (patch)
treeee06896a147c4b4afb662410965a3968038f711f /utils
parentac9304299de66eaa8d534249b800c0c79501c676 (diff)
downloadrockbox-4362a7ba33810f569be68e9c4562a50f00b639a6.tar.gz
rockbox-4362a7ba33810f569be68e9c4562a50f00b639a6.zip
imxtools/sbtools: add -jump command, fix help
Change-Id: I0d5d61c1dc137333bda5e403d06a43d16f2750bf
Diffstat (limited to 'utils')
-rw-r--r--utils/imxtools/sbtools/elftosb1.c8
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)
382 return sb1_add_call(sb, args[0].uint, g_jump_arg); 382 return sb1_add_call(sb, args[0].uint, g_jump_arg);
383} 383}
384 384
385CMD_FN(cmd_jump)
386{
387 return sb1_add_jump(sb, args[0].uint, g_jump_arg);
388}
389
385CMD_FN(cmd_jumparg) 390CMD_FN(cmd_jumparg)
386{ 391{
387 (void) sb; 392 (void) sb;
@@ -509,6 +514,7 @@ struct cmd_entry_t g_cmds[] =
509 CMD("-v", cmd_component, 1, ARG_STR) 514 CMD("-v", cmd_component, 1, ARG_STR)
510 CMD("-component", cmd_component, 1, ARG_STR) 515 CMD("-component", cmd_component, 1, ARG_STR)
511 CMD("-k", cmd_keyfile, 1, ARG_STR) 516 CMD("-k", cmd_keyfile, 1, ARG_STR)
517 CMD("-jump", cmd_jump, 1, ARG_UINT)
512}; 518};
513#undef CMD 519#undef CMD
514 520
@@ -572,6 +578,8 @@ static void usage(void)
572 printf(" -C/-noncritical\t\tClear critical flag\n"); 578 printf(" -C/-noncritical\t\tClear critical flag\n");
573 printf(" -n/-strict\t\t\tSet strict flag\n"); 579 printf(" -n/-strict\t\t\tSet strict flag\n");
574 printf(" -N/-nonstrict\t\t\tClear strict flag\n"); 580 printf(" -N/-nonstrict\t\t\tClear strict flag\n");
581 printf(" -call <addr>\t\tCall an address\n");
582 printf(" -jump <addr>\t\tJump to an address\n");
575 583
576 exit(1); 584 exit(1);
577} 585}