This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH for i386: --no-copy-relocs
- To: "Alan Modra" <amodra at bigpond dot net dot au>
- Subject: Re: PATCH for i386: --no-copy-relocs
- From: "Jose Luu" <jluu at mainsoft dot com>
- Date: Tue, 19 Jun 2001 18:16:04 +0200
- Cc: <binutils at sources dot redhat dot com>
>b) set the shared lib's .got entry for the variable to point at the
> space in the executable.
>
>That way the shared lib, which must access the variable through the
>.got, will access the same space as the executable. Point (b) seems
>to not be happening with glibc's dynamic loader.
>
I modeled my fix after the Solaris behavior, in their case, they are able to
direct the linker not to generate the copy_relocs (by assembling the main
exe using the -fPIC option) , this patch makes the gnu linker do the same:
generate the same sections and relocs. Do we care about mimicing Solaris, or
Solaris compatibility ?
More importantly, since the shared lib is linked -Bsymbolic, I dont think
the variable is accessed through the got, but directly.
Jose