[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22843] Provide dependency information from the linker similar to
From: |
rafael at espindo dot la |
Subject: |
[Bug ld/22843] Provide dependency information from the linker similar to the compiler |
Date: |
Mon, 23 Jul 2018 01:22:32 +0000 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/22843] Provide dependency information from the linker similar to the compiler,
rafael at espindo dot la <=