https://sourceware.org/bugzilla/show_bug.cgi?id=22843
Rafael Ávila de Espíndola <rafael at espindo dot la> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rafael at espindo dot la --- Comment #5 from Rafael Ávila de Espíndola <rafael at espindo dot la> --- > If we add direct dependencies to the .so files via this dependency file, > this optimization no longer works. It would be nice if the solution to this > problem could be made to work together with this. I think the best way to combine the two is to create a new .so with just the interface. Something as simple as objcopy -j .dynsym -j .dynstr orig/test.so interface/test.so seems to work at least for a trivial case, but is not perfect as it includes the size of functions. The executable is linked with interface/test.so but at runtime orig/test.so is used. The idea proposed in this bug is particularly interesting when combined with --start-lib/--end-lib or thin archives. If a program links with a static library containing foo.o and bar.o but only uses foo.o, it doesn't need to be relinked if only bar.o changes. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils