OtoolOpts.td 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. include "llvm/Option/OptParser.td"
  2. def help : Flag<["--"], "help">, HelpText<"print help">;
  3. def help_hidden : Flag<["--"], "help-hidden">,
  4. HelpText<"print help for hidden flags">;
  5. def arch : Separate<["-"], "arch">,
  6. HelpText<"select slice of universal Mach-O file">;
  7. def C : Flag<["-"], "C">, HelpText<"print linker optimization hints">;
  8. def d : Flag<["-"], "d">, HelpText<"print data section">;
  9. def D : Flag<["-"], "D">, HelpText<"print shared library id">;
  10. def f : Flag<["-"], "f">, HelpText<"print universal headers">;
  11. def G : Flag<["-"], "G">, HelpText<"print data-in-code table">;
  12. def h : Flag<["-"], "h">, HelpText<"print mach header">;
  13. def I : Flag<["-"], "I">, HelpText<"print indirect symbol table">;
  14. def j : Flag<["-"], "j">, HelpText<"print opcode bytes">;
  15. def l : Flag<["-"], "l">, HelpText<"print load commnads">;
  16. def L : Flag<["-"], "L">, HelpText<"print used shared libraries">;
  17. def mcpu_EQ : Joined<["-"], "mcpu=">, HelpText<"select cpu for disassembly">;
  18. def o : Flag<["-"], "o">, HelpText<"print Objective-C segment">;
  19. def p : Separate<["-"], "p">,
  20. MetaVarName<"<function name>">,
  21. HelpText<"start disassembly at <function name>">;
  22. def P : Flag<["-"], "P">, HelpText<"print __TEXT,__info_plist section as strings">;
  23. def : Flag<["-"], "q">, Flags<[HelpHidden]>,
  24. HelpText<"use LLVM's disassembler (default)">;
  25. def r : Flag<["-"], "r">, HelpText<"print relocation entries">;
  26. def s : MultiArg<["-"], "s", 2>,
  27. MetaVarName<"<segname> <sectname>">,
  28. HelpText<"print contents of section">;
  29. def t : Flag<["-"], "t">, HelpText<"print text section">;
  30. def version : Flag<["--"], "version">, HelpText<"print version">;
  31. def v : Flag<["-"], "v">,
  32. HelpText<"verbose output / disassemble when printing text sections">;
  33. def V : Flag<["-"], "V">,
  34. HelpText<"symbolize disassembled operands (implies -v)">;
  35. def x : Flag<["-"], "x">, HelpText<"print all text sections">;
  36. def X : Flag<["-"], "X">, HelpText<"omit leading addresses or headers">;
  37. def chained_fixups : Flag<["-"], "chained_fixups">,
  38. HelpText<"print chained fixup information">;
  39. def dyld_info : Flag<["-"], "dyld_info">,
  40. HelpText<"print bind and rebase information">;
  41. // Not (yet?) implemented:
  42. // def a : Flag<["-"], "a">, HelpText<"print archive header">;
  43. // -c print argument strings of a core file
  44. // -m don't use archive(member) syntax
  45. // -dyld_opcodes
  46. // -addr_slide=arg
  47. // -function_offsets
  48. // Obsolete and unsupported:
  49. def grp_obsolete : OptionGroup<"kind">,
  50. HelpText<"Obsolete and unsupported flags">;
  51. def : Flag<["-"], "B">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  52. HelpText<"force Thum disassembly (ARM 32-bit objects only)">;
  53. def : Flag<["-"], "H">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  54. HelpText<"print two-level hints table">;
  55. def : Flag<["-"], "M">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  56. HelpText<"print module table of shared library">;
  57. def : Flag<["-"], "R">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  58. HelpText<"print reference table of shared library">;
  59. def : Flag<["-"], "S">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  60. HelpText<"print table of contents of library">;
  61. def : Flag<["-"], "T">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  62. HelpText<"print table of contents of shared library">;
  63. def : Flag<["-"], "Q">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  64. HelpText<"llvm-otool cannot use otool-classic's disassembler">;