+ case 10002:
+ if (!me) {
+ goto ERR_NO_INPUT;
+ } else {
+ GElf_Addr from;
+ GElf_Addr to;
+ char *second;
+
+ strtok_r(optarg, ",", &second);
+ printf("--detour: From '%s' to '%s'\n", optarg, second);
+
+
+ from = strtoul(optarg, NULL, 0);
+ if (from == 0) {
+ from = elfu_mSymtabLookupAddrByName(me, me->symtab, optarg);
+ }
+ if (from == 0) {
+ printf("--detour: Cannot parse argument 1, aborting.\n");
+ goto ERR;
+ }
+ printf("--detour: From %x\n", (unsigned)from);
+
+ to = strtoul(second, NULL, 0);
+ if (to == 0) {
+ to = elfu_mSymtabLookupAddrByName(me, me->symtab, second);
+ }
+ if (to == 0) {
+ printf("--detour: Cannot parse argument 2, aborting.\n");
+ goto ERR;
+ }
+ printf("--detour: To %x\n", (unsigned)to);
+
+ elfu_mDetour(me, from, to);
+ }
+ break;