rk: fix PIE support, libpie_stage2.o depends on pie_rename.syms
[firefly-linux-kernel-4.4.55.git] / pie / Makefile
index bdd64a6dd470f5b3481008610e3cc134858f59cf..bd90261704ce53f33298e535b208462d86a902a3 100644 (file)
@@ -41,7 +41,7 @@ $(obj)/libpie_stage1.o: $(KBUILD_LIBPIE)
 OBJCOPYFLAGS_libpie_stage2.o += --redefine-syms=$(obj)/pie_rename.syms
 OBJCOPYFLAGS_libpie_stage2.o += --rename-section .text=.pie.text
 
-$(obj)/libpie_stage2.o: $(obj)/libpie_stage1.o
+$(obj)/libpie_stage2.o: $(obj)/libpie_stage1.o $(obj)/pie_rename.syms
        $(call if_changed,objcopy)
 
 # Generate a version of vmlinux.o with weakened and rename references to gcc