Re:“Shared libraries are not a good thing in general”
by brianberns on Saturday May 01, 2021 @07:23PM
(#27010865)
Does a tool that can do this exist? A “relinker”?
It’s a neat idea, but one obvious downside is the potential need to relink many executables when a shared component changes.
Re:“Shared libraries are not a good thing in general”
by ClumsyPilot on Saturday May 01, 2021 @09:15PM
(#27011497)
Ot seems you are getting downvoted, but for those of us who do not normally dive into the guts of executablea its a fair question
Re:“Shared libraries are not a good thing in general”
by DoctorNick on Saturday May 01, 2021 @10:20PM
(#27011833)
there is, but nearly all of the ones I've seen are for reverse-engineering purposes.
Static libs are embedded into most object-file formats (e.g. ELF) as isolated compilation units. Could you not just replace the static library within the object-file at the linkage level, in about the same way that old "resource editors" could replace individual resources within object-files, or the same way that programs like mkvmerge can replace individual streams within their target media-container format?
Static vs. dynamic linking is just about whether the top-level symbol table of the executable can be statically precomputed for that linkage. It doesn't impede you from re-computing the symbol table. That's what the linker already does, every time it links two compilation units together!