1TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES 2LIB1ASMFUNCS_CACHE = _ic_invalidate 3 4LIB2FUNCS_EXTRA= 5 6MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4 7MULTILIB_DIRNAMES= 8MULTILIB_MATCHES = 9MULTILIB_EXCEPTIONS= 10 11EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o 12 13# Override t-slibgcc-elf-ver to export some libgcc symbols with 14# the symbol versions that glibc used. Also use an sh specific 15# libgcc-std.ver to avoid to export some lib1func routines which 16# should not be called via PLT. 17SHLIB_MAPFILES = $(srcdir)/config/sh/libgcc-std.ver \ 18 $(srcdir)/config/sh/libgcc-glibc.ver 19 20# Override SHLIB_LINK and SHLIB_INSTALL to use linker script 21# libgcc_s.so. 22SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ 23 -Wl,--soname=$(SHLIB_SONAME) \ 24 -Wl,--version-script=$(SHLIB_MAP) \ 25 -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \ 26 rm -f $(SHLIB_SOLINK) && \ 27 (echo "/* GNU ld script"; \ 28 echo " Use the shared library, but some functions are only in"; \ 29 echo " the static library. */"; \ 30 echo "GROUP ( $(SHLIB_SONAME) libgcc.a )" \ 31 ) > $(SHLIB_SOLINK) 32SHLIB_INSTALL = \ 33 $$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \ 34 $(INSTALL_DATA) $(SHLIB_NAME) \ 35 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \ 36 rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \ 37 $(INSTALL_DATA) $(SHLIB_SOLINK) \ 38 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) 39