This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Finding BFD bug
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: pladow at pullman dot com
- Cc: binutils at sources dot redhat dot com
- Date: 09 Jun 2004 13:17:36 -0400
- Subject: Re: Finding BFD bug
- References: <200406091708.i59H8wBo091858@whale2.fsr.net>
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