https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522
--- Comment #37 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:6347bbec3efb625dfc8592fbb3099dc0364c5317 commit r13-5201-g6347bbec3efb625dfc8592fbb3099dc0364c5317 Author: Richard Biener <rguent...@suse.de> Date: Fri Jan 13 08:56:28 2023 +0100 solaris2: Don't add crtfastmath.o for -shared Don't add crtfastmath.o for -shared to avoid altering the FP environment when loading a shared library. PR target/55522 * config/sol2.h (ENDFILE_SPEC): Don't add crtfastmath.o for -shared.