History log of /external/llvm/tools/macho-dump/macho-dump.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/tools/macho-dump/macho-dump.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/tools/macho-dump/macho-dump.cpp
29552222c2e7cbeb37fcd15d247597467f7b8544 27-Sep-2013 Rui Ueyama <ruiu@google.com> Object/COFF: Rename getXXX{Begin,End} -> xxx_{begin,end}.

It is mentioned in the LLVM coding standard that _begin() and _end() suffixes
should be used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191569 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
5510728d28bb1ee04abc32da3d21b7df12948053 01-Sep-2013 Charles Davis <cdavis5x@gmail.com> Move everything depending on Object/MachOFormat.h over to Support/MachO.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189728 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
f69a29b23a116a3520f185054290c445abf9aa62 27-Aug-2013 Charles Davis <cdavis5x@gmail.com> Revert "Fix the build broken by r189315." and "Move everything depending on Object/MachOFormat.h over to Support/MachO.h."

This reverts commits r189319 and r189315. r189315 broke some tests on what I
believe are big-endian platforms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
45fbe98c21d06448d1977e8abc95972f4ad86b26 27-Aug-2013 David Blaikie <dblaikie@gmail.com> Fix the build broken by r189315.

(this triggered Clang's -Wsometimes-uninitialized on the default path
through the switch)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189319 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
9c3dd1b0d1e96ef408b68da3b06c6ebd6c943601 27-Aug-2013 Charles Davis <cdavis5x@gmail.com> Move everything depending on Object/MachOFormat.h over to Support/MachO.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
54154f3bf1ae3d2dfd68cc9474cad061b3338a40 06-Jun-2013 Kevin Enderby <enderby@apple.com> Teach llvm-objdump with the -macho parser how to use the data in code table
from the LC_DATA_IN_CODE load command. And when disassembling print
the data in code formatted for the kind of data it and not disassemble those
bytes.

I added the format specific functionality to the derived class MachOObjectFile
since these tables only appears in Mach-O object files. This is my first
attempt to modify the libObject stuff so if folks have better suggestions
how to fit this in or suggestions on the implementation please let me know.

rdar://11791371


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183424 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
2173e1839c2d00f7f980450dd537047b7b376e6b 26-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com> Use llvm/Object/MachO.h in macho-dumper. Drop the old macho parser.

For Mach-O there were 2 implementations for parsing object files. A
standalone llvm/Object/MachOObject.h and llvm/Object/MachO.h which
implements the generic interface in llvm/Object/ObjectFile.h.

This patch adds the missing features to MachO.h, moves macho-dump to
use MachO.h and removes ObjectFile.h.

In addition to making sure that check-all is clean, I checked that the
new version produces exactly the same output in all Mach-O files in a
llvm+clang build directory (including executables and shared
libraries).

To test the performance, I ran macho-dump over all the files in a
llvm+clang build directory again, but this time redirecting the output
to /dev/null. Both the old and new versions take about 4.6 seconds
(2.5 user) to finish.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180624 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
a94c33942373cb504b6e64c95415165907a89d34 18-Jan-2013 Daniel Dunbar <daniel@zuster.org> [MC/Mach-O] Add support for linker options in Mach-O files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
3e96531186ba574b0c25a4be62d24b8b7d752c9f 18-May-2012 Jim Grosbach <grosbach@apple.com> Refactor data-in-code annotations.

Use a dedicated MachO load command to annotate data-in-code regions.
This is the same format the linker produces for final executable images,
allowing consistency of representation and use of introspection tools
for both object and executable files.

Data-in-code regions are annotated via ".data_region"/".end_data_region"
directive pairs, with an optional region type.

data_region_directive := ".data_region" { region_type }
region_type := "jt8" | "jt16" | "jt32" | "jta32"
end_data_region_directive := ".end_data_region"

The previous handling of ARM-style "$d.*" labels was broken and has
been removed. Specifically, it didn't handle ARM vs. Thumb mode when
marking the end of the section.

rdar://11459456

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
0d5c32327a5a1ee12a60cfd0842dbd5c21fe8d91 27-Apr-2012 Evan Cheng <evan.cheng@apple.com> DumpSegment64Command() wasn't returning correct result. Caught by static analyzer. rdar://11329354

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155669 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
d4522460d495fb0be3303f0727f9bd00867c0b16 31-Aug-2011 Benjamin Kramer <benny.kra@googlemail.com> Teach macho-dump to dump the uleb128s referred to by linkedit_data segments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
9942acab0a42755637a682308c8262b88cbbb9e9 30-Aug-2011 Benjamin Kramer <benny.kra@googlemail.com> Teach macho-dump how to dump linkedit_data load commands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138807 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
138b77c38a660469392207e3cebcd1b718bc285e 04-Apr-2011 Eric Christopher <echristo@apple.com> Remove unused function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
74a26fe099e27c60493b7493e47b1ad53ac333cd 04-Apr-2011 Chris Lattner <sabre@nondot.org> silence an unused function warning.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
592cf78f842999d3b6c958822927790bc3f45c62 04-Apr-2011 Eric Christopher <echristo@apple.com> Start migrating mach-o dumping facilities to the object file out of a
separate executable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
3ff9563c3e391954b2e224afcf8b2b0fcc3888aa 16-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
a87d7ec234e1d4a31f4403ee9495d7700e6a593c 10-Dec-2010 Daniel Dunbar <daniel@zuster.org> Mach-O: Tweak field name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
333fb04506233255f10d8095c9e2de5e5f0fdc6f 09-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
71130f8aa1cef096083b95267a8a688a3bef6426 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for --dump-section-data and tweak a few format strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120219 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
2208b58b83392b2a3558e556c7447b13c3aea857 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for dumping symbol table entries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
f2e2a5ff04e13720cec0c130c1d88d81d0ae6007 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for dumping string table data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120217 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
90e3e3a429e75a7d3671afcc30ed376b6186fd58 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for dumping relocation entries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
2acadbddf6783055249da9fc9ea40a05b83ce56a 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for dumping sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120215 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
4c55e0db0f0a095dcd76326bef24d0fe05d2a5e4 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for dumping dysymtab indirect symbol table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120214 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
f879f14cef93fe51ee8c180be7acf70294807b8f 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for dumping symtab and dysymtab commands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120204 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
4ba1f5e0011fa0c17ff121634bf8e88270f3b52e 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Add support for dumping segment load commands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
a956d8b71755b908d8a150736e8857d2214060c6 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> Object/Mach-O: Add header and load command information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
ad1252498d37fdf32c92569fe35bf09bb6e78caa 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: More sketching.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120192 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp
75373ac0c3cd299cfb45514d5bc0bc0761233fdd 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> macho-dump: Stub out C++ macho-dump tool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120191 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/macho-dump/macho-dump.cpp