[PATCH] aarch64: Add support for GNU indirect functions.

Yufeng Zhang Yufeng.Zhang@arm.com
Mon Jun 10 17:19:00 GMT 2013


On 06/03/13 09:23, Will Newton wrote:
> +/* Find and/or create a hash entry for local symbol.  */
> +
> +static struct elf_link_hash_entry *
> +elf_aarch64_get_local_sym_hash (struct elf64_aarch64_link_hash_table *htab,
> +                               bfd *abfd, const Elf_Internal_Rela *rel,
> +                               bfd_boolean create)
> +{
> +  struct elf64_aarch64_link_hash_entry e, *ret;
> +  asection *sec = abfd->sections;
> +  hashval_t h = ELF_LOCAL_SYMBOL_HASH (sec->id,
> +                                      ELF32_R_SYM (rel->r_info));
> +  void **slot;
> +
> +  e.root.indx = sec->id;
> +  e.root.dynstr_index = ELF32_R_SYM (rel->r_info);

Sorry for the late comment, but are you sure that ELF64_R_SYM is not the 
one that you intend to use?

Yufeng



More information about the Binutils mailing list