News MIPS option -mno-shared

David Daney ddaney@avtrex.com
Mon Feb 21 22:42:00 GMT 2005


Ian Lance Taylor wrote:
> I'd like to see whether anybody has an opinion about this patch before
> I check it in.
> 
> This patch adds a new option to the MIPS assembler: -mno-shared.
> Normally the .cpload pseudo-op generates code which looks like this:
> 
> 	lui	$gp,%hi(_gp_disp)
> 	addiu	$gp,$gp,%lo(_gp_disp)
> 	addu	$gp,$gp,.cpload argument
> 
> With -mno-shared, the .cpload pseudo-op will generate code that looks
> like this:
> 
> 	lui	$gp,%hi(_gp)
> 	addiu	$gp,$gp,%lo(_gp)
.
.
.
> Does anybody want to comment on this patch before I check it in?

I like this, but just one belated nit...

as --help says nothing about the new option.

David Daney



More information about the Binutils mailing list