On Mon, Aug 17, 2009 at 7:17 AM, Maxim Kuvyrkov<maxim@xxxxxxxxxxxxxxxx> wrote:
The attached patch makes another attempt on GLIBC's PR4457
(http://sourceware.org/bugzilla/show_bug.cgi?id=4457).
This patch is not exactly what Ulrich proposed to do about the issue; it
doesn't detects the version of libgcc_s.so installed, but rather relies on
shlib-versions files to specify it. The entry in top-level shlib-versions
file specifies the version of libgcc_s to be '1' (what most architectures
have) and shlib-versions in sysdeps directories can override that. This
patch sets libgcc_s' version to 2 for m68k and hppa architectures.
FWIW, making GLIBC to autodetect the version of libgcc_s installed does not
seem trivial to me.
There will always be multiple versions of libgcc_s.so installed, and
the one to use for a new glibc is always the most recent version e.g.
`ls -a /lib/libgcc_s.so* | tail -1`