From 101691343ce5f815dc70f6cfd083393e259a18d8 Mon Sep 17 00:00:00 2001 From: Wedson Almeida Filho Date: Wed, 19 Apr 2017 18:02:53 +0930 Subject: Correct PE reloc display * peXXigen.c (pe_print_reloc): Correct chunk_end. --- bfd/ChangeLog | 4 ++++ bfd/peXXigen.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b66ade6..8abbfcb 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 38571cc..da6f0a8 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; -- cgit v1.1