llvm-project/llvm/tools/llvm-readobj
Georgii Rymar 8590b5ccd5 [libObject, llvm-readobj] - Reimplement `ELFFile<ELFT>::getEntry`.
Currently, `ELFFile<ELFT>::getEntry` does not check an index of
an entry. Because of that the code might read past the end of the symbol
table silently. I've added a test to `llvm-readobj\ELF\relocations.test`
to demonstrate the possible issue. Also, I've added a unit test for
this method.

After this change, `getEntry` stops reporting the section index and
reuses the `getSectionContentsAsArray` method, which already has
all the validation needed. Our related warnings now provide
more and better context sometimes.

Differential revision: https://reviews.llvm.org/D93209
2020-12-18 16:52:27 +03:00
..
ARMEHABIPrinter.h [llvm-readobj][ARM] - Improve support of printing unwind (-u) information for non-relocatable objects. 2020-09-30 11:43:34 +03:00
ARMWinEHPrinter.cpp [llvm-readobj] [ARMWinEH] Print ARM64 packed unwind info 2020-09-15 08:50:02 +03:00
ARMWinEHPrinter.h [llvm-readobj] [ARMWinEH] Print ARM64 packed unwind info 2020-09-15 08:50:02 +03:00
CMakeLists.txt [llvm-readobj] - Remove Error.cpp,.h and drop dependencies in the code. 2020-09-01 16:46:17 +03:00
COFFDumper.cpp [llvm-readobj] Delete unused declaration 2020-12-06 15:54:17 -08:00
COFFImportDumper.cpp
DwarfCFIEHPrinter.h [lib/Object, tools] - Make ELFObjectFile::getELFFile return reference. 2020-12-04 16:02:29 +03:00
ELFDumper.cpp [libObject, llvm-readobj] - Reimplement `ELFFile<ELFT>::getEntry`. 2020-12-18 16:52:27 +03:00
MachODumper.cpp [llvm-readelf/obj] - Move unique warning handling logic to the `ObjDumper`. 2020-12-01 10:53:00 +03:00
ObjDumper.cpp [llvm-readobj] - Introduce `ObjDumper::reportUniqueWarning(const Twine &Msg)`. 2020-12-01 12:36:44 +03:00
ObjDumper.h [llvm-readobj] - Introduce `ObjDumper::reportUniqueWarning(const Twine &Msg)`. 2020-12-01 12:36:44 +03:00
StackMapPrinter.h
WasmDumper.cpp [llvm-readelf/obj] - Move unique warning handling logic to the `ObjDumper`. 2020-12-01 10:53:00 +03:00
Win64EHDumper.cpp [llvm-readobj] - Remove Error.cpp,.h and drop dependencies in the code. 2020-09-01 16:46:17 +03:00
Win64EHDumper.h
WindowsResourceDumper.cpp [llvm-readobj] - Remove Error.cpp,.h and drop dependencies in the code. 2020-09-01 16:46:17 +03:00
WindowsResourceDumper.h
XCOFFDumper.cpp [llvm-readelf/obj] - Move unique warning handling logic to the `ObjDumper`. 2020-12-01 10:53:00 +03:00
llvm-readobj.cpp Recommit: [llvm-readelf/obj] - Allow dumping of ELF header even if some elements are corrupt. 2020-11-09 12:53:53 +03:00
llvm-readobj.h