This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: MIPS JAL/JALR to BAL transformation for Linux (o32 ABI)
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: "Fu\, Chao-Ying" <fu at mips dot com>
- Cc: "Adam Nemet" <anemet at caviumnetworks dot com>, <binutils at sourceware dot org>, "Lau\, David" <davidlau at mips dot com>, "Garbacea\, Ilie" <ilie at mips dot com>
- Date: Wed, 05 Aug 2009 22:41:42 +0100
- Subject: Re: MIPS JAL/JALR to BAL transformation for Linux (o32 ABI)
- References: <94BD67F8AF3ED34FA362C662BA1F12C502BB5D04@MTVEXCHANGE.mips.com>
"Fu, Chao-Ying" <fu@mips.com> writes:
> To check output_bfd, we need to add a new parameter of output_bfd to
> mips_elf_perform_relocation. But now because JALR_TO_BAL_P is true for all
> and JAL_TO_BAL_P is true for RM9000, checking input_bfd should be the same
> as checking output_bfd for non-RM9000 objects. We still can change to check
> output_bfd later.
The output bfd is also available via info->output_bfd. (bfd has
a habit of passing both around, but the info parameter makes the
output_bfd parameter redundant.)
Richard