llvm/test/tools
Kevin Enderby 04195353af Fix llvm-objdump when disassembling a stripped Mach-O binary with the -macho option.
It was printing out nothing in this case.

llvm-objdump tries to disassemble sections a symbol at a time.  In the case of a
fully stripped Mach-O executable the only symbol remaining in the (__TEXT,__text)
section is the special linker defined symbol __mh_execute_header . This
symbol is special in that while it is N_SECT symbol in the (__TEXT,__text)
its address is before the start of the (__TEXT,__text).  It’s address is the
start of the __TEXT segment which is where the mach header is statically
linked. So the code in DisassembleMachO() needs to deal with this case specially.

rdar://26778273


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272837 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-15 21:14:01 +00:00
..
dsymutil dsymutil/modules: Reword the warning for static libraries without module caches 2016-05-20 20:36:06 +00:00
gold IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
llvm-config Disable all llvm-config tests for now, will investigate later 2016-02-10 17:29:50 +00:00
llvm-cov [Coverage] Fix an issue where improper coverage mapping data could be loaded for an inline function. 2016-05-20 09:14:24 +00:00
llvm-cxxdump [llvm-cxxdump] Remove duplicate code check. 2015-09-15 23:35:32 +00:00
llvm-dwp llvm-dwp: More error handling around invalid compressed sections 2016-05-23 17:59:17 +00:00
llvm-lit [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
llvm-lto [ThinLTO] Use valueid instead of bitcode offsets in combined index file 2016-04-27 13:28:35 +00:00
llvm-mc [Hexagon] Removing XFAIL on Hexagon target. 2015-11-09 06:15:55 +00:00
llvm-nm Fix some bugs in the posix output of llvm-nm. Which is documented on 2016-03-29 20:18:07 +00:00
llvm-objdump Fix llvm-objdump when disassembling a stripped Mach-O binary with the -macho option. 2016-06-15 21:14:01 +00:00
llvm-pdbdump Fix several accidental DOS line endings in source files 2016-01-03 17:22:03 +00:00
llvm-profdata Retry^4 "[llvm-profdata] Add option to ingest filepaths from a file" 2016-06-07 22:47:31 +00:00
llvm-readobj [llvm-readobj] - Teach llvm-readobj to dump .gnu.version_r sections 2016-06-07 11:04:49 +00:00
llvm-size Fix llvm-size to exit with non zero when it can’t open a file. 2016-05-02 21:41:03 +00:00
llvm-split Preserve blockaddress use edges in the module splitter. 2016-03-31 21:55:11 +00:00
llvm-symbolizer [Symbolize] Check if the PE file has a PDB and emit an error if we can't load it 2016-06-03 20:25:09 +00:00
lto LTOCodeGenerator: add linkonce(_odr) to "llvm.compiler.used" when present in "MustPreserve" set 2016-05-05 05:14:24 +00:00
sancov [sancov] Revert r271695 which broke all of the PPC bots. 2016-06-04 03:28:27 +00:00
sanstats Introduce sanstats tool and llvm::CreateSanitizerStatReport function. 2016-01-16 00:31:11 +00:00