From: Felix Fietkau Date: Sun, 30 Jun 2013 07:54:51 +0000 (+0000) Subject: uClibc: use position independent code for crt1, slightly reduces size of all executables X-Git-Tag: reboot~10089 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=02a6750af87091e69d8c14e4b9e73c960b4d5794;p=openwrt%2Fstaging%2Fxback.git uClibc: use position independent code for crt1, slightly reduces size of all executables Signed-off-by: Felix Fietkau SVN-Revision: 37096 --- diff --git a/toolchain/uClibc/patches-0.9.33.2/210-mips_use_pic_crt1.patch b/toolchain/uClibc/patches-0.9.33.2/210-mips_use_pic_crt1.patch new file mode 100644 index 0000000000..2ca10d47cc --- /dev/null +++ b/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