This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [new test case jluu@mainsoft.com: Re: Possible linker problem]
- To: "Ian Lance Taylor" <ian at zembu dot com>
- Subject: Re: [new test case jluu@mainsoft.com: Re: Possible linker problem]
- From: "Jose Luu" <jluu at mainsoft dot com>
- Date: Wed, 15 Mar 2000 21:59:29 +0100
- Cc: <geoffk at cygnus dot com>, <hjl at lucon dot org>, <binutils at sourceware dot cygnus dot com>
> De : Ian Lance Taylor <ian@zembu.com>
>
> Is it thinkable to add a flag that would be used when linking a main
> executable that would mean: "do not COPY symbols from shared objects"
(this
> flag would apply to all symbols refered from the main executable and
defined
> in shared lib)?
> What functionality would we be missing when using this flag ?
>
>
>The only way to omit the COPY reloc and also have the references in
>the main program work correctly would be to generate dynamic relocs
>for all the references in the main program. This would of course
>cause the main program to start more slowly. Implementing this
>correctly in the linker would be doable, but would not be trivial.
>
Just to let you know that this would be my prefered solution, I dont think
performance would suffer too much, as most monster software I have seen is
architectured around many shared libs, the main program being small in
comparison, we would also regain some of the lost performance in the shared
libs thanks to the -Bsymbolic speedup.
Jose