I just had a stupid, weird notion:
File systems dedupe now, right? IIRC, per storage block.
What if linkers aligned dependencies to the storage block boundaries?
Then let the file system find and dedupe those libraries.
A bit like applying the alignment of data structures in memory (to optimize performance) at the expense of size inefficiency.