diff options
-rw-r--r-- | extra/Configs/Config.in | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/Makefile | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index c71fcf546..a4a64652b 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -1097,7 +1097,7 @@ config UCLIBC_BUILD_PIE bool "Build utilities as ET_DYN/PIE executables" depends on UCLIBC_SECURITY depends on HAVE_SHARED - depends on TARGET_i386 || TARGET_powerpc || TARGET_frv + depends on TARGET_i386 || TARGET_powerpc || TARGET_mips || TARGET_frv select FORCE_SHAREABLE_TEXT_SEGMENTS if BUILD_UCLIBC_LDSO default y help 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 |