This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix the number of relocations displayed for coff images.
- From: Alan Modra <amodra at gmail dot com>
- To: Wedson Almeida Filho <wedsonaf at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 19 Apr 2017 21:07:29 +0930
- Subject: Re: [PATCH] Fix the number of relocations displayed for coff images.
- Authentication-results: sourceware.org; auth=none
- References: <20170417201331.36400-1-wedsonaf@gmail.com>
On Mon, Apr 17, 2017 at 09:13:31PM +0100, Wedson Almeida Filho wrote:
> 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;
Applying with a small change. Thanks.
--
Alan Modra
Australia Development Lab, IBM