rk: fix PIE support, libpie_stage2.o depends on pie_rename.syms
author黄涛 <huangtao@rock-chips.com>
Mon, 6 Jan 2014 02:35:20 +0000 (10:35 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 6 Jan 2014 02:35:20 +0000 (10:35 +0800)
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