]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/mips/Makefile.postlink
MIPS: Avoid VDSO ABI breakage due to global register variable
[linux.git] / arch / mips / Makefile.postlink
index 4eea4188cb204a2b789ef0bdb4d8ce11d4d201f4..f03fdc95143e4da489d7b445bc28706a8bf4aab1 100644 (file)
@@ -3,7 +3,8 @@
 # Post-link MIPS pass
 # ===========================================================================
 #
-# 1. Insert relocations into vmlinux
+# 1. Check that Loongson3 LL/SC workarounds are applied correctly
+# 2. Insert relocations into vmlinux
 
 PHONY := __archpost
 __archpost:
@@ -11,6 +12,10 @@ __archpost:
 -include include/config/auto.conf
 include scripts/Kbuild.include
 
+CMD_LS3_LLSC = arch/mips/tools/loongson3-llsc-check
+quiet_cmd_ls3_llsc = LLSCCHK $@
+      cmd_ls3_llsc = $(CMD_LS3_LLSC) $@
+
 CMD_RELOCS = arch/mips/boot/tools/relocs
 quiet_cmd_relocs = RELOCS $@
       cmd_relocs = $(CMD_RELOCS) $@
@@ -19,6 +24,9 @@ quiet_cmd_relocs = RELOCS $@
 
 vmlinux: FORCE
        @true
+ifeq ($(CONFIG_CPU_LOONGSON3_WORKAROUNDS),y)
+       $(call if_changed,ls3_llsc)
+endif
 ifeq ($(CONFIG_RELOCATABLE),y)
        $(call if_changed,relocs)
 endif