This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gas: xtensa: make trampolines relaxation work with jumps in slots other than 0
- 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: Wed, 22 Mar 2017 10:30:21 -0700
- Subject: Re: [PATCH] gas: xtensa: make trampolines relaxation work with jumps in slots other than 0
- Authentication-results: sourceware.org; auth=none
- References: <1490203643-9318-1-git-send-email-jcmvbkbc@gmail.com>
On Wed, Mar 22, 2017 at 10:27 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> gas/
> 2017-03-22 Max Filippov <jcmvbkbc@gmail.com>
>
> * config/tc-xtensa.c (xtensa_relax_frag): Change fx_size of the
> reassigned fixup to size of jump instruction (3) and fx_r_type
> to BFD_RELOC_XTENSA_SLOT0_OP, as there's only one slot.
> (add_jump_to_trampoline): Search
> origfrag->tc_frag_data.slot_symbols for the slot with non-NULL
> symbol and use that slot instead of slot 0.
Approved. Please apply.