On Sat, Mar 11, 2006 at 02:49:38PM +0100, Nemanja Popov wrote:
As you can see, symbol index which references to the necessary symbol
(_foo_func2) for this relocation is wrong. That causes wrong relocation
calculation at linking time.
You may have found a problem, but the fact that _foo_func2 is replaced
by the section symbol .foo in the reloc isn't wrong in itself.
Effectively, the assembler is generating code for "jal .foo+4" instead
of "jal _foo_func_2". Since _foo_func_2 is equal to .foo+4 this should
be OK.
You might like to take a look at bfd/elf32-dlx.c. I think much of this
file is bogus.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
__________ NOD32 1.1443 (20060314) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com