1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/tools
Sid Manning c105d26f97 [llvm-objdump] Fix spurious "The end of the file was unexpectedly encountered" if a SHT_NOBITS sh_offset is larger than the file size
llvm-objdump -D this file:

  int a[100000];
  int main() { return 0; }

Will produce an error: "The end of the file was unexpectedly encountered".

This happens because of a check in Binary.h checkOffset.  (Addr + Size > M.getBufferEnd()).

The sh_offset and sh_size fields can be ignored for SHT_NOBITS sections.
Fix the error by changing ELFObjectFile<ELFT>::getSectionContents to use
the file base for SHT_NOBITS sections.

Reviewed By: grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D69192
2019-11-05 11:14:12 -08:00
..
dsymutil [dsymutil] Second attempt to fix dsymutil tests on non-darwin platforms 2019-11-01 21:07:40 -07:00
gold
llvm-ar [test] Use system locale for mri-utf8.test 2019-11-04 15:25:45 +00:00
llvm-as
llvm-cfi-verify
llvm-config
llvm-cov Revert "[llvm-cov] Add option to whitelist filenames" 2019-10-29 22:38:38 -07:00
llvm-cvtres
llvm-cxxdump [llvm/Object] - Make ELFObjectFile::getRelocatedSection return Expected<section_iterator> 2019-10-21 11:06:38 +00:00
llvm-cxxfilt
llvm-cxxmap Fix non-portable GNU diff option 2019-10-23 11:19:01 -04:00
llvm-diff
llvm-dlltool
llvm-dwarfdump DWARFDebugLoclists: Make it possible to read relocated addresses 2019-11-05 10:21:39 +01:00
llvm-dwp Remove some unnecessary REQUIRES: shell lines 2019-09-10 00:06:52 +00:00
llvm-elfabi
llvm-exegesis [llvm-exegesis] Show noise cluster in analysis output. 2019-10-11 11:33:18 +00:00
llvm-extract
llvm-ifs [llvm-ifs] Improving detection of PlatformKind from triple for TBD generation. 2019-09-06 19:59:59 +00:00
llvm-isel-fuzzer
llvm-lib [llvm-lib] Detect duplicate input files 2019-10-02 06:41:52 +00:00
llvm-lipo [llvm-lipo] Add support for -arch 2019-09-27 22:33:18 +00:00
llvm-lit
llvm-locstats Reland "[utils] Implement the llvm-locstats tool" 2019-10-02 07:00:01 +00:00
llvm-lto
llvm-lto2 Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
llvm-mc
llvm-mca [mca] Fix test case (NFC) 2019-10-31 16:44:52 -05:00
llvm-modextract
llvm-mt
llvm-nm [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
llvm-objcopy [llvm-objcopy][ELF] Implement --only-keep-debug 2019-11-05 08:56:15 -08:00
llvm-objdump [llvm-objdump] Fix spurious "The end of the file was unexpectedly encountered" if a SHT_NOBITS sh_offset is larger than the file size 2019-11-05 11:14:12 -08:00
llvm-opt-fuzzer
llvm-opt-report
llvm-pdbutil
llvm-profdata [profile] Fourth fix for toolchains without zlib after D68351 2019-10-31 16:46:22 -07:00
llvm-rc
llvm-readobj [llvm-readobj] Change errors to warnings for symbol section name dumping 2019-11-04 12:04:04 +00:00
llvm-size [yaml2obj, obj2yaml] - Add support for SHT_NOTE sections. 2019-10-25 13:25:56 +03:00
llvm-split
llvm-strings
llvm-symbolizer [Symbolize] Use the local MSVC C++ demangler instead of relying on dbghelp. NFC. 2019-10-16 20:38:44 +00:00
llvm-xray/X86
lto
obj2yaml [yaml2obj/obj2yaml] - Add support for SHT_GNU_HASH section. 2019-10-31 12:25:37 +03:00
opt-viewer
sancov Revert 374629 "[sancov] Accommodate sancov and coverage report server for use under Windows" 2019-10-12 05:23:43 +00:00
sanstats
yaml2obj [llvm-readobj] Change errors to warnings for symbol section name dumping 2019-11-04 12:04:04 +00:00