Re: linker script and versioned symbols
On Sun, Dec 20, 2009 at 11:17:12 +0100, Marco d'Itri wrote:
> On Dec 20, Steve Langasek <email@example.com> wrote:
> > > How can I write an ld linker script that will cause ld to output the
> > > same symbols two times, with and without a version tag?
> > > I.e. I need it to output both symbol@Base and symbol@LIBFOO_1.0.
> > In what sense does this make it backward-incompatible? A shlibdeps bump
> > should be sufficient; anything referencing an unversioned symbol will have
> > its reference satisfied by any matching symbol name, regardless of version.
> The problem is in the other direction: new binaries reference
> symbol@LIBFOO_1.0, so even if they work the old library the dynamic
> linker outputs a warning at startup.
Which is why Steve talked of a shlibdeps bump, which would cover this,
since the new binaries would depend on the new library.