From f70c8b37e4efff5127f489da3f160fa3585848b1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Nov 2009 21:25:31 +0000 Subject: [PATCH] uboot-ifxmips: fix compile errors with the cs toolchain due to non-PIC code SVN-Revision: 18321 --- .../patches/110-compile_fix.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/uboot-ifxmips/patches/110-compile_fix.patch diff --git a/package/uboot-ifxmips/patches/110-compile_fix.patch b/package/uboot-ifxmips/patches/110-compile_fix.patch new file mode 100644 index 0000000000..34d0ac6e53 --- /dev/null +++ b/package/uboot-ifxmips/patches/110-compile_fix.patch @@ -0,0 +1,25 @@ +--- a/cpu/mips/Makefile ++++ b/cpu/mips/Makefile +@@ -36,6 +36,9 @@ START := $(addprefix $(obj),$(START)) + + all: $(obj).depend $(START) $(LIB) + ++start.o: start.S ++ $(CC) $(AFLAGS) -fPIC -c -o $@ $< ++ + $(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +--- a/Makefile ++++ b/Makefile +@@ -185,8 +185,8 @@ include $(TOPDIR)/config.mk + OBJS = cpu/$(CPU)/start.o + OBJS_BOOTSTRAP = cpu/$(CPU)/start_bootstrap.o + +-cpu/$(CPU)/start_bootstrap.S: cpu/$(CPU)/start.S +- ln -s start.S cpu/$(CPU)/start_bootstrap.S ++cpu/$(CPU)/start_bootstrap.o: cpu/$(CPU)/start.S ++ $(CC) $(AFLAGS) -fPIC -DCFG_BOOTSTRAP_CODE -c -o $@ $< + + ifeq ($(CPU),i386) + OBJS += cpu/$(CPU)/start16.o -- 2.30.2