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: Finding BFD bug


pladow@pullman.com writes:

> So is the problem in the embedding of the offsets in the actual data?  Or 
> should the relocation information in the object file be zero?

A key question, which can not be answered without knowing the intended
ABI.

What does the relocation information look like--objdump -r or readelf
-r?

In a sense, it doesn't matter.  It just has to be self-consistent.  It
sounds like the easiest way to be consistent is to make the object
file contents zero.  The easiest way to do that is to tweak
tc_gen_reloc, or track down the howto function and make it do the
right thing.  Does the howto function call bfd_elf_generic_reloc()?
Or if there is no howto function, it should probably be that function.
The howto functions can usually be found via a use of the macro HOWTO.

Ian


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