Eugene Leviant
531df4fcef
[ELF] Print error location in .eh_frame parser
...
Differential revision: https://reviews.llvm.org/D26914
llvm-svn: 287750
2016-11-23 09:45:17 +00:00
Rui Ueyama
a9b7514eb0
Fix typo in error message.
...
llvm-svn: 287451
2016-11-19 18:34:55 +00:00
Rui Ueyama
1b45cca6d7
ELF: Simplify readEntryLength.
...
I removed "CIE/FIE size is too large" error because that was not
checking for correct error conditions. [UINT_MAX - 4, UINT_MAX) is
a correct range as a size of a CIE/FDE record. It's just that the
size cannot be larger than the section size.
llvm-svn: 259951
2016-02-05 23:24:05 +00:00
George Rimar
003be4fd58
[ELF] - implement support of extended length field for CIE/FDE records of eh_frame.
...
Ian Lance Taylor writes: "Read 4 bytes. If they are not 0xffffffff, they are the length of the CIE or FDE record. Otherwise the next 64 bits holds the length, and this is a 64-bit DWARF format. This is like .debug_frame." (http://www.airs.com/blog/archives/460 ), that also consistent with spec (https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/ehframechpt.html ).
Patch implements support of described extended length field and also adds few more checks for safety.
Differential revision: http://reviews.llvm.org/D15532
llvm-svn: 255883
2015-12-17 09:23:40 +00:00