This is the mail archive of the binutils@sourceware.cygnus.com 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]

Re: R_MIPS16_GPREL patch


On Wed, Jul 14, 1999 at 09:55:41AM -0700, Mark Mitchell wrote:
> +      /* R_MIPS16_GPREL is used for GP-relative addressing in mips16
> +	 mode.  A typical instruction will have a format like this:
>  
> +	 +--------------+--------------------------------+
> +	 !    EXTEND    !     Imm 10:5    !   Imm 15:11  !
> +	 +--------------+--------------------------------+
> +	 !    Major     !   rx   !   ry   !   Imm  4:0   !
> +	 +--------------+--------------------------------+

Perhaps it didn't mention it, but I'm fairly sure you have
the same little-endian issue to deal with here.  Or maybe
I'm just missing where the word swap is happening?


r~

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