This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Correct PE reloc display


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=101691343ce5f815dc70f6cfd083393e259a18d8

commit 101691343ce5f815dc70f6cfd083393e259a18d8
Author: Wedson Almeida Filho <wedsonaf@gmail.com>
Date:   Wed Apr 19 18:02:53 2017 +0930

    Correct PE reloc display
    
    	* peXXigen.c (pe_print_reloc): Correct chunk_end.

Diff:
---
 bfd/ChangeLog  | 4 ++++
 bfd/peXXigen.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]