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: "augustine dot sterling at gmail dot com" <augustine dot sterling at gmail dot com>
- To: Max Filippov <jcmvbkbc 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: Mon, 22 Sep 2014 10:21:21 -0700
- 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>
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.