This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH for i386: --no-copy-relocs


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]