This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]