When running llvm-objdump with the -macho option objdump will by default
disassemble only the TEXT,text section (or TEXT_EXEC,text when
disassembling MH_KEXT_BUNDLE files). The -disassemble-all option is
treated no diferently than -disassemble.
This change upates llvm-objdump's MachO parsing code to disassemble all
text sections found in a file when -disassemble-all is specified. This
is useful for disassembling files with more than one text section, or
when disassembling files whose text section is not present in TEXT.
I added a lit test case that verifies "llvm-objdump -m -d" and
"llvm-objdump -m -D" produce the expected results on a reference binary.
I also updated the CommandGuide documentation for llvm-objdump.rst and
verified it renders correctly as man and html.
rdar://42899338