Skip to content

Commit dd59051

Browse files
authored
Merge pull request #10 from Pylgos/fix-arg-parsing
Fix the binary search for `--rename-dynamic-symbols` by correctly sorting `g_cmdline_actions`
2 parents 9b9c05b + a91e99c commit dd59051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,6 @@ static const cmdline_def_t g_cmdline_actions[] = {
777777
{"--print-rpath", action_print_rpath, NULL},
778778
{"--print-runpath", action_print_runpath, NULL},
779779
{"--print-soname", action_print_soname, NULL},
780-
{"--rename-dynamic-symbols",action_apply_renamer, parse_rename_dynamic_symbols},
781780
{"--remove-debug", action_remove_debug, NULL},
782781
{"--remove-flags", action_remove_flag, parse_arg_flags},
783782
{"--remove-kernel-version", action_remove_kernel_version, NULL},
@@ -787,6 +786,7 @@ static const cmdline_def_t g_cmdline_actions[] = {
787786
{"--remove-runpath", action_remove_runpath, NULL},
788787
{"--remove-soname", action_remove_soname, NULL},
789788
{"--remove-verneed", action_remove_verneed, NULL},
789+
{"--rename-dynamic-symbols",action_apply_renamer, parse_rename_dynamic_symbols},
790790
{"--set-interpreter", action_set_interpreter, parse_arg_string},
791791
{"--set-rpath", action_set_rpath, parse_arg_string},
792792
{"--set-runpath", action_set_runpath, parse_arg_string},

0 commit comments

Comments
 (0)