This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objdump prints PE relocations with --private-headers, not--reloc
- From: Nick Clifton <nickc at redhat dot com>
- To: Pavel Roskin <proski at gnu dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 30 Oct 2003 11:50:47 +0000
- Subject: Re: objdump prints PE relocations with --private-headers, not--reloc
- References: <Pine.LNX.4.58.0310222326180.19436@portland.hansa.lan>
Hi Pavel,
> There is an inconsistency in the way how objdump prints
> relocations. Relocations for ELF of COFF files are printed by
> "objdump --reloc", but relocations in PE files are printed by
> "objdump --private-headers". In the later case the relocations are
> not grouped by sections they apply to.
Which version of binutils were you using and compiled for which target?
I tried a simple test file:
.text
.global foo
foo:
.word fred
with several different targets (arm-wince-pe, mingw32-pe, mcore-pe,
i686-pc-cygwin) and in all cases the reloc generated in the object
file was reported by "objdump -r" and not "objdump -p".
Cheers
Nick