[PATCH-SH]:Generating proper relocations to link with RenesasSHC linker

Kaz Kojima kkojima@rr.iij4u.or.jp
Wed Mar 24 22:41:00 GMT 2004


"Asgari J. Jinia" <AsgariJ@KPITCummins.com> wrote:
> What should I do to stop gas generating in-place relocation when
> addend is generated for R_SH_DIR32? Can you give some hint about this?
> Can I put this change under -mhitachi or -mrenesas option?
> I need to link GNU object files with Renesas linker.

But .o object with R_SH_DIR32 having no in-place relocation is
not GNU object.  If the Renesas linker really needs such objects,
Renesas assembler should do so.  Why don't you use it?

BTW, does Renesas assembler really do it so?  AFAIK, the current
behavior of gas for R_SH_DIR32 is fairly old and I've seen no
complaint about it.  It would be better to try to assemble a simple
assembler program like

	.text
	.long bar
bar:

with your Renesas assembler and see the relocation by objdump -Dr
to confirm it.

Regards,
	kaz



More information about the Binutils mailing list