A relocation problem in shared objects for SH

kaz Kojima kkojima@rr.iij4u.or.jp
Thu Sep 14 19:21:00 GMT 2000


Richard Henderson <rth@cygnus.com> wrote:
> On Fri, Sep 15, 2000 at 07:41:36AM +0900, kaz Kojima wrote:
>> 0002eae4  00101 R_SH_DIR32	00000000	.text		       0002e760
>> 
>> Here, 2e760(addend) + 1fa0(rel value in memory) is the correct address...
>
>If you've got RelA relocations, why are you looking at the contents
>of the memory at all?  That's just kitten-eating wrong.

elf32-sh.c is used for COFF too and COFF relocs don't use the addend.
It makes our situation complex. There are some comments in elf32-sh.c
about this which I can find them by grepping the word COFF.

	kaz


More information about the Binutils mailing list