From 9d6eef9b39547d230d5a7cb871735bae71f5fd55 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 26 Aug 2014 12:28:55 +0200 Subject: we need to remove crtbegin.o/crtend.o from gcc specs file. otherwise broken executables (f.e. sash) with a wrong data start are created by elf2flt) --- toolchain/gcc/patches/4.8.3/disable-tm.m68k | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 toolchain/gcc/patches/4.8.3/disable-tm.m68k (limited to 'toolchain/gcc/patches') diff --git a/toolchain/gcc/patches/4.8.3/disable-tm.m68k b/toolchain/gcc/patches/4.8.3/disable-tm.m68k new file mode 100644 index 000000000..02b5cb854 --- /dev/null +++ b/toolchain/gcc/patches/4.8.3/disable-tm.m68k @@ -0,0 +1,14 @@ +diff -Nur gcc-4.8.3.orig/gcc/config/m68k/uclinux.h gcc-4.8.3/gcc/config/m68k/uclinux.h +--- gcc-4.8.3.orig/gcc/config/m68k/uclinux.h 2013-01-10 21:38:27.000000000 +0100 ++++ gcc-4.8.3/gcc/config/m68k/uclinux.h 2014-08-25 17:03:59.543127685 +0200 +@@ -20,6 +20,10 @@ + along with GCC; see the file COPYING3. If not see + . */ + ++/* Do not use TM clone registry. It breaks -msep-data (-fPIC) code. */ ++/* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54584 */ ++#define USE_TM_CLONE_REGISTRY 0 ++ + #undef STARTFILE_SPEC + #define STARTFILE_SPEC \ + "%{mshared-library-id=0|!mshared-library-id=*: crt1.o%s ;: Scrt1.o%s} \ -- cgit v1.2.3