Correct PE reloc display

* peXXigen.c (pe_print_reloc): Correct chunk_end.
This commit is contained in:
Wedson Almeida Filho 2017-04-19 18:02:53 +09:30 committed by Alan Modra
parent 954b63d4c8
commit 101691343c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
* peXXigen.c (pe_print_reloc): Correct chunk_end.
2017-04-19 Alan Modra <amodra@gmail.com>
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak

View File

@ -2255,7 +2255,7 @@ pe_print_reloc (bfd * abfd, void * vfile)
_("\nVirtual Address: %08lx Chunk size %ld (0x%lx) Number of fixups %ld\n"),
(unsigned long) virtual_address, size, size, number);
chunk_end = p + size;
chunk_end = p - 8 + size;
if (chunk_end > end)
chunk_end = end;
j = 0;