From: Wedson Almeida Filho Date: Wed, 19 Apr 2017 08:32:53 +0000 (+0930) Subject: Correct PE reloc display X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=101691343ce5f815dc70f6cfd083393e259a18d8;p=binutils-gdb.git Correct PE reloc display * peXXigen.c (pe_print_reloc): Correct chunk_end. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b66ade68434..8abbfcb2581 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2017-04-19 Wedson Almeida Filho + + * peXXigen.c (pe_print_reloc): Correct chunk_end. + 2017-04-19 Alan Modra * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 38571cc1051..da6f0a8999f 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -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;