public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Wedson Almeida Filho <wedsonaf@gmail.com>
To: binutils@sourceware.org
Cc: Wedson Almeida Filho <wedsonaf@gmail.com>
Subject: [PATCH] Fix the number of relocations displayed for coff images.
Date: Mon, 17 Apr 2017 20:14:00 -0000	[thread overview]
Message-ID: <20170417201331.36400-1-wedsonaf@gmail.com> (raw)

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

             reply	other threads:[~2017-04-17 20:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-17 20:14 Wedson Almeida Filho [this message]
2017-04-19 11:37 ` Alan Modra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170417201331.36400-1-wedsonaf@gmail.com \
    --to=wedsonaf@gmail.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).