3 ms·
This sounds very much like... prelink?
by baybal2 3y ago
This sounds very much like... prelink?
- viraptor 3y agoNot quite, but it's closer to statifier https://statifier.sourceforge.net/ https://statifier.sourceforge.net/ or ermine https://www.magicermine.com/ https://www.magicermine.com/ You can definitely do most of the same process in hacky ways on Linux already. I don't think you can use it for making the merged shared lib to use for compilation later... But it's only a few hacks away.
- planede 3y agoFrom the video: > Mergeable metadata roughly doubles the size of the dylib. I think they just bundle the static lib and dynamic lib together. I think there is a wasted opportunity to do something much smarter here, but maybe that will follow. We already compile static libraries with PIC, and use the same object files to compile dynamic libraries. In theory the two could be bundled in a way that shares most of the data, as the machine code is literally the same. They are both linked from the same object files.
- viraptor 3y agoReminds me of some recent work in nixpkgs where the idea is to get a mostly-static builds that only depend on libsystem on MacOS. https://github.com/NixOS/nixpkgs/issues/214611 https://github.com/NixOS/nixpkgs/issues/214611 At some point the difference does seem to become mostly "what do you do during linking".