This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] CSKY: About PC relative diff relocation
- From: Nick Clifton <nickc at redhat dot com>
- To: Lifang Xia <lifang_xia at c-sky dot com>, binutils at sourceware dot org
- Cc: Sandra Loosemore <sandra at codesourcery dot com>, 尚云海 <yunhai_shang at c-sky dot com>, 瞿仙淼 <xianmiao_qu at c-sky dot com>
- Date: Mon, 17 Sep 2018 16:31:56 +0100
- Subject: Re: [PATCH] CSKY: About PC relative diff relocation
- References: <da9af9a5-2d8c-903a-ad30-8d5c4f1d231f@c-sky.com>
Hi Lifang,
> bfd:
> * elf32-csky.c (csky_elf_howto_table): Fill special_function of
> R_CKCORE_PCREL32.
> (csky_elf_relocate_section): Add R_CKCORE_PCREL32 process.
> gas:
> * config/tc-csky.c (md_apply_fix): Transmit
> BFD_RELOC_32_PCREL to BFD_RELOC_CKCORE_PCREL32.
> (tc_gen_reloc): Trasmit BFD_RELOC_CKCORE_ADDR32 to
> BFD_RELOC_CKCORE_PCREL32 while pc-relative.
> * config/tc-csky.h (DIFF_EXPR_OK): Define to enable PC relative
> diff relocs.
Approved - please apply. (Sorry for the delay in reviewing).
Cheers
Nick