]> git.sur5r.net Git - u-boot/blobdiff - lib_ppc/Makefile
i386: Fix dlmalloc compile warning
[u-boot] / lib_ppc / Makefile
index 60ea0c91393e61259a1f2feffeceef1f5f9742ed..399b41e31e0e30143ebedd10b2bfc08a208a045b 100644 (file)
@@ -42,6 +42,12 @@ SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS)
+       @if ! $(CROSS_COMPILE)readelf -S $(OBJS) | grep -q '\.fixup.*PROGBITS';\
+       then \
+               echo "ERROR: Your compiler doesn't generate .fixup sections!";\
+               echo "       Upgrade to a recent toolchain."; \
+               exit 1; \
+       fi;
        $(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################