[PATCH 2/2] gas/write: extend fx_pcrel_adjust to 16 bits

Andreas Schwab schwab@linux-m68k.org
Wed May 11 18:13:20 GMT 2022


On Mai 11 2022, Dmitry Selyutin via Binutils wrote:

> diff --git a/gas/write.h b/gas/write.h
> index 501bdd828f..e31a0f5955 100644
> --- a/gas/write.h
> +++ b/gas/write.h
> @@ -73,10 +73,10 @@ struct fix
>    unsigned fx_tcbit2 : 1;
>
>    /* Spare bits.  */
> -  unsigned fx_unused : 10;
> +  unsigned fx_unused : 2;
>
>    /* pc-relative offset adjust (only used by some CPU specific code) */
> -  int fx_pcrel_adjust : 8;
> +  int fx_pcrel_adjust : 16;
>
>    /* How many bytes are involved? */
>    unsigned fx_size : 8;

It's probably better to swap the fx_size and fx_pcrel_adjust fields, so
that fx_pcrel_adjust is aligned on a 16 bit boundary.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Binutils mailing list