[PATCH] ARM: Fix relocation of EXIDX sections

Andreas Schwab schwab@suse.de
Tue Sep 13 07:16:00 GMT 2016


On Sep 13 2016, Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> wrote:

> +unsigned int
> +_bfd_elf_default_count_output_relocs (
> +  struct bfd_link_info *info ATTRIBUTE_UNUSED, asection *o)
> +{
> +  struct bfd_elf_section_data *esdo;
> +  struct bfd_elf_section_reloc_data *reldata;
> +
> +  esdo = elf_section_data (o);
> +  if (esdo->rel.hdr)
> +    reldata = &esdo->rel;
> +  else if (esdo->rela.hdr)
> +    reldata = &esdo->rela;
> +  else
> +    return TRUE;

Returning TRUE in a function that returns a number doesn't make sense.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Binutils mailing list