[PATCH] New port @GOTOFF, @GOT, @PLT relocation token for target m32r

Kazuhiro Inaoka inaoka.kazuhiro@renesas.com
Fri Jun 25 04:26:00 GMT 2004


Hi Nick,

Excuse me, The following patch was not enough to support GOTOFF relocation.
http://sources.redhat.com/ml/binutils/2004-06/msg00397.html

This patch is to support GOTOFF relocation.
Please apply it.

Regards,

Kazuhiro Inaoka

include/ChangeLog

2004-06-25  Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>

	* elf/m32r.h: Add
	R_M32R_GOTOFF_HI_ULO, R_M32R_GOTOFF_HI_SLO, R_M32R_GOTOFF_LO

bfd/ChangeLog

2004-06-25  Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>

	* elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
	(m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
	(m32r_elf_gcsweep_hook): Ditto.
	(m32r_elf_check_relocs): Ditto.
	(m32r_elf_howto_table): Added
	R_M32R_GOTOFF_HI_ULO, R_M32R_GOTOFF_HI_SLO, R_M32R_GOTOFF_LO
	* reloc.c: Added
	BFD_RELOC_M32R_GOTOFF_HI_ULO, BFD_RELOC_M32R_GOTOFF_HI_SLO,
	BFD_RELOC_M32R_GOTOFF_LO

gas/ChangeLog

2004-06-25  Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>

	* config/tc-m32r.c (md_convert_frag): Changed for @PLT.
	(m32r_cgen_record_fixup_exp): Changed for  @GOTOFF, @GOT.
	(m32r_fix_adjustable): Changed for  @GOTOFF, @GOT, @PLT.
	(tc_gen_reloc): Ditto.
	(m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
	(m32r_parse_name): Ditto.
	(m32r_cgen_parse_fix_exp): Ditto.
	* config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
	(O_PIC_reloc): Ditto
	(TC_CGEN_PARSE_FIX_EXP): Ditto.
	* cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
         for @GOTOFF, @GOT, @PLT.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gotoff2.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20040625/d919b6f3/attachment.ksh>


More information about the Binutils mailing list