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: 10 Jun 2004 21:31:36 -0400
- Subject: Re: Finding BFD bug
- References: <200406110002.i5B02WBo030263@whale2.fsr.net>
pladow@pullman.com writes:
> Well, my above statement has been proven wrong. The changes to src_msk and
> partial_inplace fixed the external symbol problem. Now a problem appears in
> the opposite case: local symbols (which worked before). Now all local
> symbols have their offsets zerod. Again, this only happens in the data
> section. Any references to symbols, local or external, are fine in the text
> section.
At a guess, the assembler is not putting the required addend in the
relocations against .data. Why it is not doing that I do not know.
Those relocs are going through adjust_reloc_syms() in gas. But they
should already have fx_addnumber set at that point, I think, and it
should also be set before tc_gen_reloc() is called. It's really a
black art, unfortunately.
Ian