public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix the number of relocations displayed for coff images.
@ 2017-04-17 20:14 Wedson Almeida Filho
  2017-04-19 11:37 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Wedson Almeida Filho @ 2017-04-17 20:14 UTC (permalink / raw)
  To: binutils; +Cc: Wedson Almeida Filho

Without this fix, objdump always shows 4 extra relocations.
---
 bfd/peXXigen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index eb9c879492..b729a537df 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -2256,7 +2256,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 + size - 8;
       if (chunk_end > end)
 	chunk_end = end;
       j = 0;
-- 
2.11.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-19 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17 20:14 [PATCH] Fix the number of relocations displayed for coff images Wedson Almeida Filho
2017-04-19 11:37 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).