aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWedson Almeida Filho <wedsonaf@gmail.com>2017-04-19 18:02:53 +0930
committerAlan Modra <amodra@gmail.com>2017-04-19 20:39:53 +0930
commit101691343ce5f815dc70f6cfd083393e259a18d8 (patch)
tree0f21ac86a5877d992b283577be7e487b0e61f22b
parent954b63d4c8645f86e40c7ef6c6d60acd2bf019de (diff)
downloadgdb-101691343ce5f815dc70f6cfd083393e259a18d8.zip
gdb-101691343ce5f815dc70f6cfd083393e259a18d8.tar.gz
gdb-101691343ce5f815dc70f6cfd083393e259a18d8.tar.bz2
Correct PE reloc display
* peXXigen.c (pe_print_reloc): Correct chunk_end.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/peXXigen.c2
2 files changed, 5 insertions, 1 deletions
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 <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
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;