powerpc: Reject binutils 2.24 when building little endian
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / Makefile
index 3609504b0ad20082be3622f8ea423bf13912e47c..a314cb024c8bb237091d4320e4793e1401e7bbb7 100644 (file)
@@ -339,6 +339,14 @@ checkbin:
                echo 'disable kernel modules' ; \
                false ; \
        fi
+       @if test "x${CONFIG_CPU_LITTLE_ENDIAN}" = "xy" \
+           && $(LD) --version | head -1 | grep ' 2\.24$$' >/dev/null ; then \
+               echo -n '*** binutils 2.24 miscompiles weak symbols ' ; \
+               echo 'in some circumstances.' ; \
+               echo -n '*** Please use a different binutils version.' ; \
+               false ; \
+       fi
+
 
 CLEAN_FILES += $(TOUT)