Fix MIPS ELF64 problem with .gpword/.8byte combinations

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Thu Oct 7 22:37:00 GMT 2004


Richard Sandiford wrote:
[snip]
> + /* Read a macro's relocation codes from *ARGS and store them in *R.
> +    The first argument in *ARGS will be either the code for a single
> +    relocation or -1 followed by the three codes that make up a
> +    composite relocation.  */
> + 
> + static void
> + macro_read_relocs (va_list *args, bfd_reloc_code_real_type *r)
> + {
> +   int i, next;
> + 
> +   next = va_arg (*args, int);
> +   if (next >= 0)
> +     r[0] = (bfd_reloc_code_real_type) next;
> +   else
> +     for (i = 0; i < 3; i++)
> +       r[i] = (bfd_reloc_code_real_type) va_arg (*args, int);
> + }

AFAICS this is likely to cause breakage if we have to support combined
dual relocs.


Thiemo



More information about the Binutils mailing list