This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH v4] ARM: Fix relocation of EXIDX sections
- From: Nick Clifton <nickc at redhat dot com>
- To: Akihiko Odaki <akihiko dot odaki dot 4i at stu dot hosei dot ac dot jp>, binutils at sourceware dot org
- Cc: Andreas Schwab <schwab at suse dot de>, Paul Brook <paul at codesourcery dot com>, Yury Usishchev <y dot usishchev at samsung dot com>
- Date: Fri, 23 Sep 2016 16:35:07 +0100
- Subject: Re: [PATCH v4] ARM: Fix relocation of EXIDX sections
- Authentication-results: sourceware.org; auth=none
- References: <20160922015207.24667-1-akihiko.odaki.4i@stu.hosei.ac.jp> <20160923102443.20355-1-akihiko.odaki.4i@stu.hosei.ac.jp>
Hi Akihiko-san,
Thank you very much for persisting with this patch. This time there were
no problems or regressions. :-)
> bfd * elf-bfd.h: Add callback to count relocations in the final output.
> * elf-arm.c (elf32_arm_add_relocation): Deleted.
> (elf32_arm_write_section): Move additional relocation to emit_relocs.
> (elf32_arm_count_output_relocs): New function.
> (emit_relocs): New function.
> (elf32_arm_emit_relocs): New function.
> (elf32_arm_vxworks_emit_relocs): New function.
> (elf_backend_emit_relocs): Updated to use the new functions.
> (elf_backend_count_output_relocs): New define.
> * bfd/elflink.c (bfd_elf_final_link): Do not add additional_reloc_count
> to the relocation count.
> (_bfd_elf_link_size_reloc_section): Use callback to count the
> relocations which will be in output.
> (_bfd_elf_default_count_output_relocs): New function.
> * bfd/elfxx-target.h (elf_backend_count_output_relocs): New define.
Approved and applied.
Cheers
Nick