summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-12 07:50:09 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-12 07:50:09 +0200
commit952a83cdcb29f41782b2516e115748e3ed32497d (patch)
tree658da78c90d113c7cbec9931ea95a61a883ccf39 /toolchain/gcc/patches
parentc4a4396a81029494e420db7fc0f5c8a9a6990d15 (diff)
bfin: add workaround for libgcc issues
Diffstat (limited to 'toolchain/gcc/patches')
-rw-r--r--toolchain/gcc/patches/6.1.0/bfin-workaround.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/6.1.0/bfin-workaround.patch b/toolchain/gcc/patches/6.1.0/bfin-workaround.patch
new file mode 100644
index 000000000..7b57a285b
--- /dev/null
+++ b/toolchain/gcc/patches/6.1.0/bfin-workaround.patch
@@ -0,0 +1,15 @@
+diff -Nur gcc-6.1.0.orig/libgcc/Makefile.in gcc-6.1.0/libgcc/Makefile.in
+--- gcc-6.1.0.orig/libgcc/Makefile.in 2016-02-25 13:23:52.000000000 +0100
++++ gcc-6.1.0/libgcc/Makefile.in 2016-08-11 21:15:13.841764686 +0200
+@@ -932,7 +932,11 @@
+ { $(NM) $(SHLIB_NM_FLAGS) $(libgcc-s-objects); echo %%; \
+ cat libgcc.map.in; \
+ } | $(AWK) -f $(SHLIB_MKMAP) $(SHLIB_MKMAP_OPTS) > tmp-$@
++ifeq ($(cpu_type),bfin)
++ sed -e 's/__/_/' tmp-$@ > $@
++else
+ mv tmp-$@ $@
++endif
+ libgcc_s$(SHLIB_EXT): libgcc.map
+ mapfile = libgcc.map
+ endif