From 0e910924766cc3e37da9d17bbc71ea0a42852018 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Fri, 18 Jan 2008 02:21:09 +0000 Subject: Another piece needed for FD-PIC. This compiles another startfile, crtreloc.o, if necessary. --- Makerules | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makerules b/Makerules index 44292ed9c..2a4f39d41 100644 --- a/Makerules +++ b/Makerules @@ -229,6 +229,13 @@ else 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 @@ endif 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 $@) -- cgit v1.2.3