changeset 1760:69ae59c2d53f draft

The sh2 elf2flt target I'm testing needs a non-pic libgcc.a to work.
author Rob Landley <rob@landley.net>
date Sat, 23 May 2015 16:41:30 -0500
parents ef7b355302ef
children 67a19abd420c
files sources/patches/gcc-core-shpic.patch
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/gcc-core-shpic.patch	Sat May 23 16:41:30 2015 -0500
@@ -0,0 +1,11 @@
+Don't build libgcc.a with -fpic for elf2flt binaries.
+
+diff -ruN gcc-core/gcc/config/sh/t-linux gcc-core.bak/gcc/config/sh/t-linux
+--- gcc-core/gcc/config/sh/t-linux	2006-03-31 16:31:05.000000000 -0600
++++ gcc-core.bak/gcc/config/sh/t-linux	2015-05-22 20:48:34.890802152 -0500
+@@ -1,4 +1,4 @@
+-TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
++TARGET_LIBGCC2_CFLAGS = -DNO_FPSCR_VALUES
+ LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array
+ 
+ LIB2FUNCS_EXTRA= $(srcdir)/config/sh/linux-atomic.asm