svn commit: trunk/uClibc

bernds at uclibc.org bernds at uclibc.org
Fri Jan 18 02:21:10 UTC 2008


Author: bernds
Date: 2008-01-17 18:21:09 -0800 (Thu, 17 Jan 2008)
New Revision: 20869

Log:
Another piece needed for FD-PIC.  This compiles another startfile, crtreloc.o,
if necessary.


Modified:
   trunk/uClibc/Makerules


Changeset:
Modified: trunk/uClibc/Makerules
===================================================================
--- trunk/uClibc/Makerules	2008-01-17 21:47:59 UTC (rev 20868)
+++ trunk/uClibc/Makerules	2008-01-18 02:21:09 UTC (rev 20869)
@@ -229,6 +229,13 @@
 CTOR_TARGETS:=
 endif
 
+ifeq ($(UCLIBC_FORMAT_FDPIC_ELF),y)
+CRTRELOC=$(top_builddir)lib/crtreloc.o
+$(CRTRELOC): $(top_builddir)lib/%.o : $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/%.c
+	$(Q)$(INSTALL) -d $(dir $@)
+	$(compile.c)
+endif
+
 ifneq ($(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/initfini.c),)
 CFLAGS-initfini.s := -S -g0 $(PICFLAG) -fno-inline-functions -finhibit-size-directive
 $(top_builddir)lib/initfini.s: $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/initfini.c
@@ -266,8 +273,8 @@
 CRTS_COMPAT :=
 #endif
 
-$(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT)
-$(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT): | headers
+$(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT) $(CRTRELOC)
+$(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT) $(CRTRELOC): | headers
 
 $(top_builddir)lib/$(NONSHARED_LIBNAME): $(libc-nonshared-y)
 	$(Q)$(INSTALL) -d $(dir $@)




More information about the uClibc-cvs mailing list