Mercurial > hg > CbC > CbC_gcc
comparison libgcc/config/sh/t-linux @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 HOST_LIBGCC2_CFLAGS = -fpic -mieee -DNO_FPSCR_VALUES | 1 LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array |
2 | |
3 LIB2ADD = $(srcdir)/config/sh/linux-atomic.c | |
4 | |
5 HOST_LIBGCC2_CFLAGS += -DNO_FPSCR_VALUES | |
6 | |
7 # Silence atomic built-in related warnings in linux-atomic.c. | |
8 # Unfortunately the conflicting types warning can't be disabled selectively. | |
9 HOST_LIBGCC2_CFLAGS += -w -Wno-sync-nand | |
2 | 10 |
3 # Override t-slibgcc-elf-ver to export some libgcc symbols with | 11 # Override t-slibgcc-elf-ver to export some libgcc symbols with |
4 # the symbol versions that glibc used, and hide some lib1func | 12 # the symbol versions that glibc used, and hide some lib1func |
5 # routines which should not be called via PLT. We have to create | 13 # routines which should not be called via PLT. We have to create |
6 # the list from scratch. | 14 # the list from scratch. |
7 SHLIB_MAPFILES = \ | 15 SHLIB_MAPFILES = \ |
8 $(gcc_srcdir)/libgcc-std.ver \ | 16 libgcc-std.ver \ |
9 $(gcc_srcdir)/config/sh/libgcc-excl.ver \ | 17 $(srcdir)/config/sh/libgcc-excl.ver \ |
10 $(gcc_srcdir)/config/sh/libgcc-glibc.ver | 18 $(srcdir)/config/sh/libgcc-glibc.ver |
11 | |
12 # Override SHLIB_LINK and SHLIB_INSTALL to use linker script | |
13 # libgcc_s.so. | |
14 SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ | |
15 -Wl,--soname=@shlib_base_name@.so.1 \ | |
16 -Wl,--version-script=@shlib_map_file@ \ | |
17 -o @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_flags@ \ | |
18 @shlib_objs@ -lc && \ | |
19 rm -f @multilib_dir@/@shlib_base_name@.so && \ | |
20 if [ -f @multilib_dir@/@shlib_base_name@.so.1 ]; then \ | |
21 mv -f @multilib_dir@/@shlib_base_name@.so.1 \ | |
22 @multilib_dir@/@shlib_base_name@.so.1.backup; \ | |
23 else true; fi && \ | |
24 mv @multilib_dir@/@shlib_base_name@.so.1.tmp \ | |
25 @multilib_dir@/@shlib_base_name@.so.1 && \ | |
26 (echo "/* GNU ld script"; \ | |
27 echo " Use the shared library, but some functions are only in"; \ | |
28 echo " the static library. */"; \ | |
29 echo "GROUP ( @shlib_base_name@.so.1 libgcc.a )" \ | |
30 ) > @multilib_dir@/@shlib_base_name@.so | |
31 SHLIB_INSTALL = \ | |
32 $(mkinstalldirs) $(DESTDIR)$(slibdir)@shlib_slibdir_qual@; \ | |
33 $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.so.1 \ | |
34 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so.1; \ | |
35 rm -f $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; \ | |
36 $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.so \ | |
37 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so |