PATCH for i386: --no-copy-relocs
Jose Luu
jluu@mainsoft.com
Tue Jun 19 09:09:00 GMT 2001
>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
More information about the Binutils
mailing list