This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH for i386: --no-copy-relocs
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.
r~