[PATCH] (version 2) Change MIPS linker stubs to allow for more than 2^15 symbols.

Eric Christopher echristo@apple.com
Sun Jun 11 00:42:00 GMT 2006
I usually prefer this style:

> -#define STUB_LUI(VAL) (0x3c180000 + (VAL))	/* lui t8,VAL */
>


To this...

> +  /* Fill the stub.  */
> +  bfd_put_32 (output_bfd, (ABI_64_P (output_bfd)
> +			   ? 0xdf998010		/* ld t9, 0x8010(gp) */
> +			   : 0x8f998010),	/* lw t9, 0x8010(gp) */
> +	      stub);

-eric



More information about the Binutils mailing list