llvm-project/llvm/tools/obj2yaml
James Henderson ca05601cd2 [DebugInfo] Don't error for zero-length arange entries
Although the DWARF specification states that .debug_aranges entries
can't have length zero, these can occur in the wild. There's no
particular reason to enforce this part of the spec, since functionally
they have no impact. The patch removes the error and introduces a new
warning for premature terminator entries which does not stop parsing.

This is a relanding of cb3a598c87, adding the missing obj2yaml part
that was needed.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46805. See also
https://reviews.llvm.org/D71932 which originally introduced the error.

Reviewed by: ikudrin, dblaikie, Higuoxing

Differential Revision: https://reviews.llvm.org/D85313
2020-08-10 14:57:52 +01:00
..
CMakeLists.txt [XCOFF] Add functionality for parsing AIX XCOFF object file headers 2019-04-04 00:53:21 +00:00
Error.cpp
Error.h Obj2YamlError - fix uninitialized variable warning. NFCI. 2019-11-08 16:26:20 +00:00
coff2yaml.cpp Re-land "Migrate the rest of COFFObjectFile to Error" 2020-06-11 14:46:16 -07:00
dwarf2yaml.cpp [DebugInfo] Don't error for zero-length arange entries 2020-08-10 14:57:52 +01:00
elf2yaml.cpp [obj2yaml] Add support for dumping the .debug_aranges section. 2020-08-05 19:19:05 +08:00
macho2yaml.cpp [macho2yaml] Remove unused functions. NFC. 2020-08-07 20:34:15 +08:00
minidump2yaml.cpp Add minidump support to obj2yaml 2019-04-02 11:58:37 +00:00
obj2yaml.cpp [DWARF] Return Error from DWARFDebugArangeSet::extract(). 2020-01-23 12:41:05 +07:00
obj2yaml.h [obj2yaml] Add support for dumping the .debug_aranges section. 2020-08-05 19:19:05 +08:00
wasm2yaml.cpp [WebAssembly] Move event section before global section 2020-03-25 11:49:03 -07:00
xcoff2yaml.cpp [Object][XCOFF] Add support for 64-bit file header and section header dumping. 2019-07-09 18:09:11 +00:00