https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522
--- Comment #36 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:426a9f5570d74040176f81e7cf6806b36ebc907f commit r13-5141-g426a9f5570d74040176f81e7cf6806b36ebc907f Author: Richard Biener <rguent...@suse.de> Date: Fri Jan 13 08:51:10 2023 +0100 arm: 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/arm/linux-eabi.h (ENDFILE_SPEC): Don't add crtfastmath.o for -shared. * config/arm/unknown-elf.h (STARTFILE_SPEC): Likewise.