[U-Boot] [RFC PATCH 03/17] powerpc: remove .fixup test

Scott Wood scottwood at freescale.com
Sat Sep 22 02:01:13 CEST 2012

This was introduced by commit 244615197469dd6fe75ae082f38424b97c79aeaf, but it
fails in a minimal SPL build where the only thing in arch/powerpc/lib is
cache.c, which apparently doesn't generate any fixup records.

If this check is really still needed, it should be moved somewhere more
appropriate, but given that it's been three years and no other
architecture does a test like this, I think we can remove it.  It would
have been nice if the original commit said how old the problematic
toolchains were.

Signed-off-by: Scott Wood <scottwood at freescale.com>
Cc: Peter Tyser <ptyser at xes-inc.com>
 arch/powerpc/lib/Makefile |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile
index cdd62a2..6e92005 100644
--- a/arch/powerpc/lib/Makefile
+++ b/arch/powerpc/lib/Makefile
@@ -75,12 +75,6 @@ TARGETS += $(LIB)
 all: $(TARGETS)
 $(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;
 	$(call cmd_link_o_target, $(OBJS))
 $(LIBGCC): $(obj).depend $(LGOBJS)

More information about the U-Boot mailing list