This is the mail archive of the binutils@sourceware.cygnus.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: [new test case jluu@mainsoft.com: Re: Possible linker problem]


> 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



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