소스 검색

uClibc: use position independent code for crt1, slightly reduces size of all executables

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 37096
Felix Fietkau 12 년 전
부모
커밋
02a6750af8
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      toolchain/uClibc/patches-0.9.33.2/210-mips_use_pic_crt1.patch

+ 11 - 0
toolchain/uClibc/patches-0.9.33.2/210-mips_use_pic_crt1.patch

@@ -0,0 +1,11 @@
+--- a/libc/sysdeps/linux/mips/Makefile.arch
++++ b/libc/sysdeps/linux/mips/Makefile.arch
+@@ -20,6 +20,8 @@ ifneq ($(UCLIBC_HAS_THREADS_NATIVE),y)
+ SSRC += vfork.S clone.S
+ endif
+ 
++CFLAGS-crt1.S += $(PICFLAG)
++
+ ASFLAGS-syscall_error.S += -D_LIBC_REENTRANT
+ 
+ ARCH_HEADERS := sgidefs.h