This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix 'call8: call target out of range' xtensa ld relaxation bug
- From: Max Filippov <jcmvbkbc at gmail dot com>
- To: "augustine dot sterling at gmail dot com" <augustine dot sterling at gmail dot com>
- Cc: binutils at sourceware dot org, David Weatherford <weath at cadence dot com>, Marc Gauthier <marc at cadence dot com>, "linux-xtensa at linux-xtensa dot org" <linux-xtensa at linux-xtensa dot org>
- Date: Tue, 23 Sep 2014 03:42:57 +0400
- Subject: Re: [PATCH] Fix 'call8: call target out of range' xtensa ld relaxation bug
- Authentication-results: sourceware.org; auth=none
- References: <1411265211-10665-1-git-send-email-jcmvbkbc at gmail dot com> <CAGSvup-OQ3sYPH1NH+7Tsfghr5NjHHURO_OPVUXLCMG-weagJw at mail dot gmail dot com>
On Mon, Sep 22, 2014 at 9:21 PM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> On Sat, Sep 20, 2014 at 7:06 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> From: Sterling Augustine <augustine.sterling@gmail.com>
>>
>> During link-time relaxation distance between cross-section call site and
>> its target may grow, producing 'call target out of range' error for
>> relaxed calls. Be more conservative when calculating whether or not a
>> callx can be converted to a straight call.
>>
>> 2014-09-21 Sterling Augustine <augustine.sterling@gmail.com>
>>
>> bfd/
>> * elf32-xtensa.c (is_resolvable_asm_expansion): for cross-section
>> call relaxation use furthermost addresses where call source and
>> destination can be to check whether it's in the range of a direct
>> call.
>
> This is OK for xtensa.
Thanks, checked in.
-- Max