summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-12-22 21:40:45 +0000
committerEric Andersen <andersen@codepoet.org>2004-12-22 21:40:45 +0000
commit47a9d4544eeac98adef6f703a5ec2889896a4c90 (patch)
tree0fa521c54eb4ebc469fa47d4f06ac1a1324d060e /libc
parentf8e6aa06ffb1897b87f4d90545e8ca5b3d0cdb9a (diff)
Patch from Peter S. Mazinger:
Add pie support for mips
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/mips/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/mips/Makefile b/libc/sysdeps/linux/mips/Makefile
index 2a021dfe9..71d80a408 100644
--- a/libc/sysdeps/linux/mips/Makefile
+++ b/libc/sysdeps/linux/mips/Makefile
@@ -20,7 +20,7 @@ TOPDIR=../../../../
include $(TOPDIR)Rules.mak
CRT0_SRC = crt0.S
-CRT0_OBJ = crt0.o crt1.o
+CRT0_OBJ = crt1.o
CTOR_TARGETS=$(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
SSRC=bsd-_setjmp.S bsd-setjmp.S setjmp.S clone.S syscall.S pipe.S
@@ -39,6 +39,8 @@ $(LIBC): ar-target
ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
cp $(CRT0_OBJ) $(TOPDIR)lib/
+ $(LN) -fs $(CRT0_OBJ) $(TOPDIR)/lib/crt0.o
+ $(LN) -fs $(CRT0_OBJ) $(TOPDIR)/lib/Scrt1.o
$(CRT0_OBJ): $(CRT0_SRC)
$(CC) $(ASFLAGS) -DL_$* $< -c -o $*.o