1 TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
2 LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array
10 EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
12 # Override t-slibgcc-elf-ver to export some libgcc symbols with
13 # the symbol versions that glibc used, and hide some lib1func
14 # routines which should not be called via PLT. We have to create
15 # the list from scratch.
17 $(srcdir)/libgcc-std.ver \
18 $(srcdir)/config/sh/libgcc-excl.ver \
19 $(srcdir)/config/sh/libgcc-glibc.ver
21 # Override SHLIB_LINK and SHLIB_INSTALL to use linker script
23 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
24 -Wl,--soname=$(SHLIB_SONAME) \
25 -Wl,--version-script=$(SHLIB_MAP) \
26 -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \
27 $(SHLIB_OBJS) $(SHLIB_LC) && \
28 rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \
29 if [ -f $(SHLIB_DIR)/$(SHLIB_SONAME) ]; then \
30 mv -f $(SHLIB_DIR)/$(SHLIB_SONAME) \
31 $(SHLIB_DIR)/$(SHLIB_SONAME).backup; \
33 mv $(SHLIB_DIR)/$(SHLIB_SONAME).tmp $(SHLIB_DIR)/$(SHLIB_SONAME) && \
34 (echo "/* GNU ld script"; \
35 echo " Use the shared library, but some functions are only in"; \
36 echo " the static library. */"; \
37 echo "GROUP ( $(SHLIB_SONAME) libgcc.a )" \
38 ) > $(SHLIB_DIR)/$(SHLIB_SOLINK)
40 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
41 $(INSTALL_DATA) $(SHLIB_DIR)/$(SHLIB_SONAME) \
42 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
43 rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
44 $(INSTALL_DATA) $(SHLIB_DIR)/$(SHLIB_SOLINK) \
45 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)