[PATCH] New port @GOTOFF, @GOT, @PLT relocation token for target m32r
Nick Clifton
nickc@redhat.com
Fri Jun 25 16:10:00 GMT 2004
Hi Kazuhiro,
> include/elf/ChangeLog
> 2004-06-25 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
>
> * 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.
Approved and applied.
One thing though - please would you consider adding a new test to the
m32r section of the GAS testsuite to make sure that this new support
works, and continues to work with future releases.
Cheers
Nick
More information about the Binutils
mailing list