This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 1/4] xtensa: optimize check_section_ebb_pcrels_fit
- 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: Thu, 9 Apr 2015 08:57:21 -0700
- Subject: Re: [PATCH 1/4] xtensa: optimize check_section_ebb_pcrels_fit
- Authentication-results: sourceware.org; auth=none
- References: <1428590948-10787-1-git-send-email-jcmvbkbc at gmail dot com> <1428590948-10787-2-git-send-email-jcmvbkbc at gmail dot com>
On Thu, Apr 9, 2015 at 7:49 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> 2015-04-01 Max Filippov <jcmvbkbc@gmail.com>
> bfd/
> * elf32-xtensa.c (reloc_range_list, reloc_range_list_entry,
> reloc_range): new typedef.
> (reloc_range_list_struct, reloc_range_list_entry_struct,
> reloc_range_struct): new structures.
> (reloc_range_compare, build_reloc_ranges,
> reloc_range_list_append, reloc_range_list_remove,
> reloc_range_list_update_range, free_reloc_range_list): new
> functions.
> (compute_text_actions): precompute relocation opcodes before the
> loop. Add relevant_relocs variable, initialize it before the
> loop, pass it to the check_section_ebb_pcrels_fit.
> (check_section_ebb_pcrels_fit): add new parameter:
> relevant_relocs. Update address range in the relevant_relocs if
> it's non-NULL and iterate only over relevant relocations.
Approved. Please apply.