34e8393019
arc-2016.09 is the most recent toolchain for ARC cores and it is based on top of upstream Binutils 2.27 and GCC 6.2.1. With updated major version of GCC we copied all GCC 6.x patches for ARC as well as Bintils 2.27 patches. Note that toochain sports ARCv4 ABI and so must be used with 4.8+ Linux kernels. Even though it will build v4.4 kernel perfectly fine on attempt to run user-space apps they won't work with older kernel. That said previuosly sent RFC patches with Linux kernel update are required: [1] https://patchwork.ozlabs.org/patch/726686/ [2] https://patchwork.ozlabs.org/patch/726687/ Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
--- a/libgcc/Makefile.in
|
|
+++ b/libgcc/Makefile.in
|
|
@@ -888,11 +888,12 @@ $(libgcov-driver-objects): %$(objext): $
|
|
|
|
# Static libraries.
|
|
libgcc.a: $(libgcc-objects)
|
|
+libgcc_pic.a: $(libgcc-s-objects)
|
|
libgcov.a: $(libgcov-objects)
|
|
libunwind.a: $(libunwind-objects)
|
|
libgcc_eh.a: $(libgcc-eh-objects)
|
|
|
|
-libgcc.a libgcov.a libunwind.a libgcc_eh.a:
|
|
+libgcc.a libgcov.a libunwind.a libgcc_eh.a libgcc_pic.a:
|
|
-rm -f $@
|
|
|
|
objects="$(objects)"; \
|
|
@@ -913,7 +914,7 @@ all: libunwind.a
|
|
endif
|
|
|
|
ifeq ($(enable_shared),yes)
|
|
-all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
|
|
+all: libgcc_eh.a libgcc_pic.a libgcc_s$(SHLIB_EXT)
|
|
ifneq ($(LIBUNWIND),)
|
|
all: libunwind$(SHLIB_EXT)
|
|
libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_EXT)
|
|
@@ -1115,6 +1116,10 @@ install-shared:
|
|
chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
|
|
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
|
|
|
|
+ $(INSTALL_DATA) libgcc_pic.a $(mapfile) $(DESTDIR)$(inst_libdir)/
|
|
+ chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_pic.a
|
|
+ $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_pic.a
|
|
+
|
|
$(subst @multilib_dir@,$(MULTIDIR),$(subst \
|
|
@shlib_base_name@,libgcc_s,$(subst \
|
|
@shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_INSTALL))))
|