#
68fffa8a |
| 11-Oct-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the load commands that uses the MachO::linker_option_command type but not used in llvm libObject code but used in llvm tool code.
Thi
Next set of additional error checks for invalid Mach-O files for the load commands that uses the MachO::linker_option_command type but not used in llvm libObject code but used in llvm tool code.
This includes just LC_LINKER_OPTION load command.
llvm-svn: 283939
show more ...
|
#
f993d6e7 |
| 04-Oct-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the load commands that uses the MachO::encryption_info_command and MachO::encryption_info_command types but not used in llvm libObject
Next set of additional error checks for invalid Mach-O files for the load commands that uses the MachO::encryption_info_command and MachO::encryption_info_command types but not used in llvm libObject code but used in llvm tool code.
This includes just LC_ENCRYPTION_INFO and LC_ENCRYPTION_INFO_64 load commands.
llvm-svn: 283250
show more ...
|
#
4f229d86 |
| 29-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the load command that uses the MachO::entry_point_command type but not used in llvm libObject code but used in llvm tool code.
This i
Next set of additional error checks for invalid Mach-O files for the load command that uses the MachO::entry_point_command type but not used in llvm libObject code but used in llvm tool code.
This includes just the LC_MAIN load command.
llvm-svn: 282766
show more ...
|
#
245be3ed |
| 29-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the load command that uses the Mach::source_version_command type but not used in llvm libObject code but used in llvm tool code.
This
Next set of additional error checks for invalid Mach-O files for the load command that uses the Mach::source_version_command type but not used in llvm libObject code but used in llvm tool code.
This includes just the LC_SOURCE_VERSION load command.
llvm-svn: 282736
show more ...
|
#
76966bf0 |
| 28-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the load command that uses the Mach::rpath_command type but not used in llvm libObject code but used in llvm tool code.
This includes
Next set of additional error checks for invalid Mach-O files for the load command that uses the Mach::rpath_command type but not used in llvm libObject code but used in llvm tool code.
This includes just the LC_RPATH load command.
llvm-svn: 282649
show more ...
|
#
32359dbf |
| 28-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the other load commands that use the Mach::version_min_command type but not used in llvm libObject code but used in llvm tool code.
T
Next set of additional error checks for invalid Mach-O files for the other load commands that use the Mach::version_min_command type but not used in llvm libObject code but used in llvm tool code.
This includes LC_VERSION_MIN_MACOSX, LC_VERSION_MIN_IPHONEOS, LC_VERSION_MIN_TVOS and LC_VERSION_MIN_WATCHOS load commands.
llvm-svn: 282635
show more ...
|
#
3e490ef9 |
| 27-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the other load commands that use the MachO::dylinker_command type but not used in llvm libObject code but used in llvm tool code.
Thi
Next set of additional error checks for invalid Mach-O files for the other load commands that use the MachO::dylinker_command type but not used in llvm libObject code but used in llvm tool code.
This includes LC_ID_DYLINKER, LC_LOAD_DYLINKER and LC_DYLD_ENVIRONMENT load commands.
llvm-svn: 282553
show more ...
|
#
90986e6c |
| 26-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for the other load commands that use the Mach::linkedit_data_command type but not used in llvm libObject code but used in llvm tool code.
Next set of additional error checks for invalid Mach-O files for the other load commands that use the Mach::linkedit_data_command type but not used in llvm libObject code but used in llvm tool code.
This includes LC_FUNCTION_STARTS, LC_SEGMENT_SPLIT_INFO and LC_DYLIB_CODE_SIGN_DRS load commands.
llvm-svn: 282441
show more ...
|
#
e71e13c7 |
| 21-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for bad LC_UUID load commands. Added a missing check and made the check for more than one like other other “more than one” checks. And o
Next set of additional error checks for invalid Mach-O files for bad LC_UUID load commands. Added a missing check and made the check for more than one like other other “more than one” checks. And of course added test cases.
llvm-svn: 282104
show more ...
|
#
fc0929ad |
| 20-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for bad load commands that use the Mach::dylib_command type for the load commands that are currently used in the MachOObjectFile construct
Next set of additional error checks for invalid Mach-O files for bad load commands that use the Mach::dylib_command type for the load commands that are currently used in the MachOObjectFile constructor.
This contains the missing checks for LC_ID_DYLIB, LC_ID_DYLIB, etc. load commands and the fields for the Mach::dylib_command type.
Also checks that only an MH_DYLIB or MH_STUB_DYLIB has an LC_ID_DYLIB load command (and others filetype don’t) and there is not more than one of these load commands.
llvm-svn: 282008
show more ...
|
#
f76b56cb |
| 13-Sep-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for bad load commands that use the Mach::dyld_info_command type for the load commands that are currently use in the MachOObjectFile constr
Next set of additional error checks for invalid Mach-O files for bad load commands that use the Mach::dyld_info_command type for the load commands that are currently use in the MachOObjectFile constructor.
This contains the missing checks for LC_DYLD_INFO and LC_DYLD_INFO_ONLY load commands and the fields for the Mach::dyld_info_command type.
llvm-svn: 281400
show more ...
|
#
9d0c945a |
| 31-Aug-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for bad load commands that use the Mach::linkedit_data_command type for the load commands that are currently used in the MachOObjectFile c
Next set of additional error checks for invalid Mach-O files for bad load commands that use the Mach::linkedit_data_command type for the load commands that are currently used in the MachOObjectFile constructor.
This contains the missing checks for LC_DATA_IN_CODE and LC_LINKER_OPTIMIZATION_HINT load commands and the fields for the Mach::linkedit_data_command type. Checking for other load commands that use this type will be added later.
Also fixed a couple of places that was using sizeof(MachOObjectFile::LoadCommandInfo) that should have been using sizeof(MachO::load_command).
llvm-svn: 280267
show more ...
|
#
dcbc504c |
| 30-Aug-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for bad LC_DYSYMTAB’s.
This contains the missing checks for LC_DYSYMTAB load command fields.
llvm-svn: 280161
|
#
0e52c92e |
| 26-Aug-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files for bad LC_SYMTAB’s.
This contains the missing checks for LC_SYMTAB load command fields.
llvm-svn: 279854
|
Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3 |
|
#
9d0b5312 |
| 22-Aug-2016 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Reformat.
llvm-svn: 279409
|
#
59a20649 |
| 22-Aug-2016 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Untabify.
llvm-svn: 279408
|
Revision tags: llvmorg-3.9.0-rc2 |
|
#
c614d283 |
| 12-Aug-2016 |
Kevin Enderby <enderby@apple.com> |
Next set of additional error checks for invalid Mach-O files.
This contains the two missing checks for LC_SEGMENT load command fields. And checks for the Mach-O sections fields that would make them
Next set of additional error checks for invalid Mach-O files.
This contains the two missing checks for LC_SEGMENT load command fields. And checks for the Mach-O sections fields that would make them invalid.
With the new checks, some of the existing malformed file checks now trips one of these instead of the issue it was having before so those tests were adjusted.
llvm-svn: 278557
show more ...
|
#
600fb3f2 |
| 05-Aug-2016 |
Kevin Enderby <enderby@apple.com> |
Add the first of what will be a long line of additional error checks for invalid Mach-O files.
This is where an LC_SEGMENT load command has a fileoff field that extends past the end of the file.
Al
Add the first of what will be a long line of additional error checks for invalid Mach-O files.
This is where an LC_SEGMENT load command has a fileoff field that extends past the end of the file.
Also fix llvm-nm and llvm-size to remove the errorToErrorCode() call so error messages are printed. And needed to update a few test cases now that they do print the error messages just a bit differently.
llvm-svn: 277845
show more ...
|
Revision tags: llvmorg-3.9.0-rc1 |
|
#
5e51a2e3 |
| 22-Jul-2016 |
Lang Hames <lhames@gmail.com> |
[Support] Make ErrorAsOutParameter take an Error* rather than an Error&.
This allows ErrorAsOutParameter to work better with "optional" errors. For example, consider a function where for certain inp
[Support] Make ErrorAsOutParameter take an Error* rather than an Error&.
This allows ErrorAsOutParameter to work better with "optional" errors. For example, consider a function where for certain input values it is known that the function can't fail. This can now be written as:
Result foo(Arg X, Error *Err) { ErrorAsOutParameter EAO(Err);
if (<Error Condition>) { if (Err) *Err = <report error>; else llvm_unreachable("Unexpected failure!"); } }
Rather than having to construct an ErrorAsOutParameter under every conditional where Err is known to be non-null.
llvm-svn: 276430
show more ...
|
#
1851a827 |
| 07-Jul-2016 |
Kevin Enderby <enderby@apple.com> |
Add checks to the MachOObjectFile() constructor to make sure load commands sizes are the correct multiple.
llvm-svn: 274798
|
#
931cb65d |
| 24-Jun-2016 |
Kevin Enderby <enderby@apple.com> |
Thread Expected<...> up from libObject’s getSymbolAddress() for symbols to allow a good error message to be produced.
This is nearly the last libObject interface that used ErrorOr and the last one t
Thread Expected<...> up from libObject’s getSymbolAddress() for symbols to allow a good error message to be produced.
This is nearly the last libObject interface that used ErrorOr and the last one that appears in llvm/include/llvm/Object/MachO.h . For Mach-O objects this is just a clean up because it’s version of getSymbolAddress() can’t return an error.
I will leave it to the experts on COFF and ELF to actually add meaning full error messages in their tests if they wish. And also leave it to these experts to change the last two ErrorOr interfaces in llvm/include/llvm/Object/ObjectFile.h for createCOFFObjectFile() and createELFObjectFile() if they wish.
Since there are no test cases for COFF and ELF error cases with respect to getSymbolAddress() in the test suite this is no functional change (NFC).
llvm-svn: 273701
show more ...
|
Revision tags: llvmorg-3.8.1, llvmorg-3.8.1-rc1 |
|
#
401e4e57 |
| 24-May-2016 |
George Rimar <grimar@accesssoftek.com> |
Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.)
Fix was: 1) Had to regenerate dwarfdump-test-zlib.elf-x86-64, dwarfdump-test-zlib-gnu.elf-x86-64 (be
Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.)
Fix was: 1) Had to regenerate dwarfdump-test-zlib.elf-x86-64, dwarfdump-test-zlib-gnu.elf-x86-64 (because llvm-symbolizer-zlib.test uses that inputs for its purposes and failed). 2) Updated llvm-symbolizer-zlib.test (updated used call function address to match new files + added one more check for newly created dwarfdump-test-zlib-gnu.elf-x86-64 binary input). 3) Updated comment in dwarfdump-test-zlib.cc.
Original commit message: [llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.
Before this llvm-dwarfdump only recognized zlib-gnu compression style of headers, this patch adds support for zlib style. It looks reasonable to support both styles for dumping, even if we are not going to suport generating of deprecated gnu one.
Differential revision: http://reviews.llvm.org/D20470
llvm-svn: 270557
show more ...
|
#
f059dd4f |
| 24-May-2016 |
George Rimar <grimar@accesssoftek.com> |
Revert r270543 ("Recommit r270540") Failed build bot in another test. I am sorry for noise. http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental_check/23679/testReport/junit/LLVM/Debu
Revert r270543 ("Recommit r270540") Failed build bot in another test. I am sorry for noise. http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental_check/23679/testReport/junit/LLVM/DebugInfo/llvm_symbolizer_zlib_test/
llvm-svn: 270547
show more ...
|
#
e9b2e191 |
| 24-May-2016 |
George Rimar <grimar@accesssoftek.com> |
Recommit r270540 fix: forgot to commit the updated dwarfdump-test-zlib.elf-x86-64
Original commit message: [llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.
Before this
Recommit r270540 fix: forgot to commit the updated dwarfdump-test-zlib.elf-x86-64
Original commit message: [llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.
Before this llvm-dwarfdump only recognized zlib-gnu compression style of headers, this patch adds support for zlib style. It looks reasonable to support both styles for dumping, even if we are not going to suport generating of deprecated gnu one.
Differential revision: http://reviews.llvm.org/D20470
llvm-svn: 270543
show more ...
|
#
6a6185fd |
| 24-May-2016 |
George Rimar <grimar@accesssoftek.com> |
Revert r270540 "[llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style."
it broked bot: http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/5036
llvm-svn: 270541
|