Fix build-many-glibcs.py --strip for installed library renaming
authorJoseph Myers <joseph@codesourcery.com>
Thu, 16 Sep 2021 14:08:05 +0000 (14:08 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 16 Sep 2021 14:08:05 +0000 (14:08 +0000)
commit876e51548cc5d96af5ea13febd0a1a75bfc04497
treeee0b411ec29d3cf36edf5eb342f0f22bf837cafc
parentcb5088cfd3030cfe7ea875846d9a8623dcddbf4f
Fix build-many-glibcs.py --strip for installed library renaming

The renaming of installed shared libraries to use the SONAME directly
rather than linking to a versioned name stopped build-many-glibcs.py
--strip (used to facilitate comparing binaries before and after
changes that aren't meant to change any generated code in installed
glibc shared libraries) from stripping most of the installed shared
libraries, because it stripped only the *.so names.  Fix it to strip
*.so* names instead and to detect the case of linker scripts using
grep instead of hardcoding particular files that are linker scripts.

Tested with build-many-glibcs.py --strip.
scripts/build-many-glibcs.py