PATCH for i386: --no-copy-relocs

Alan Modra amodra@bigpond.net.au
Thu Jun 28 07:10:00 GMT 2001


On Wed, Jun 27, 2001 at 11:25:14AM -0700, Richard Henderson wrote:
> On Wed, Jun 20, 2001 at 09:35:54AM +0930, Alan Modra wrote:
> > As a side note, doing this does not provide any benefit at run-time for
> > data accesses, besides reducing dynamic loader time;  Data accesses still
> > go through the .got.
> 
> They wouldn't necessarily need to though.  You could implement
> a form of relaxation on x86 that transformed
> 
> 	movl    foo@GOT(%ebx), %edx
> into
> 	leal    foo@GOTOFF(%ebx), %edx
> 
> which is convenient in that the instructions are the same size.

Hmm, yes.  Or even
	leal	foo, %edx

Alan



More information about the Binutils mailing list