This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] bfd/elfnn-aarch64.c: Handle static links with ifunc correctly.


On 26 November 2013 08:54, Will Newton <will.newton@linaro.org> wrote:

> -      if (info->shared && SYMBOL_REFERENCES_LOCAL (info, h))
> +      if (h->def_regular
> +         && h->type == STT_GNU_IFUNC)
> +       {
> +         if (info->shared)
> +           {
> +             /* Generate R_AARCH64_GLOB_DAT.  */
> +             goto do_glob_dat;
> +           }
> +         else
> +           {
> +             asection *plt;
> +
> +             if (!h->pointer_equality_needed)
> +               abort ();

Is abort() the best option here, can't we spit out a diagnostic and return?

/Marcus


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]