mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222299 91177308-0d34-0410-b5e6-96231b3b80d8
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