Finding BFD bug

Ian Lance Taylor ian@wasabisystems.com
Wed Jun 9 17:17:00 GMT 2004


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



More information about the Binutils mailing list