This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: News MIPS option -mno-shared
- From: David Daney <ddaney at avtrex dot com>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 09 Dec 2004 10:53:28 -0800
- Subject: Re: News MIPS option -mno-shared
- References: <20041209153403.5294.qmail@gossamer.airs.com>
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)
>
Will this work when ld generates multiple GOTs?
David Daney.