llvm-readobj: fix off-by-one error in COFFDumper
It printed out base relocation table header as table entry. This patch also makes llvm-readobj to not skip ABSOLUTE entries becuase it was confusing. llvm-svn: 222299
This commit is contained in:
@@ -1491,7 +1491,7 @@ void BaseRelocRef::moveNext() {
|
||||
// Header->BlockSize is the size of the current block, including the
|
||||
// size of the header itself.
|
||||
uint32_t Size = sizeof(*Header) +
|
||||
sizeof(coff_base_reloc_block_entry) * Index;
|
||||
sizeof(coff_base_reloc_block_entry) * (Index + 1);
|
||||
if (Size == Header->BlockSize) {
|
||||
// .reloc contains a list of base relocation blocks. Each block
|
||||
// consists of the header followed by entries. The header contains
|
||||
|
||||
Reference in New Issue
Block a user