objdump prints PE relocations with --private-headers, not --reloc

Nick Clifton nickc@redhat.com
Thu Oct 30 11:59:00 GMT 2003


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



More information about the Binutils mailing list