summaryrefslogtreecommitdiff
path: root/pie
diff options
context:
space:
mode:
author黄涛 <huangtao@rock-chips.com>2013-11-22 18:38:07 +0800
committer黄涛 <huangtao@rock-chips.com>2013-11-22 18:38:07 +0800
commitf170061c06269bcf4e9858cc91fbd2b708e556b6 (patch)
treec42494a2b0f471ef8e37d23ed98fce44274e8d1e /pie
parent5b4bb81c25ff3ccaaaab565264eb08db564d1c2a (diff)
rk: add and fix PIE support
1) PIE depends on GENERIC_ALLOCATOR 2) fix old version objcopy -j do not support wildcard 3) add rockchip PIE section group
Diffstat (limited to 'pie')
-rw-r--r--pie/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/pie/Makefile b/pie/Makefile
index 9afed70fa0c5..954ae12d9cdd 100644
--- a/pie/Makefile
+++ b/pie/Makefile
@@ -62,6 +62,8 @@ $(obj)/pie_stage2.o: $(obj)/pie_stage1.o $(obj)/libpie_stage2.o
# Drop everything but the pie sections
OBJCOPYFLAGS_pie_stage3.o += -j ".pie.*"
+OBJCOPYFLAGS_pie_stage3.o += -j ".pie.text"
+OBJCOPYFLAGS_pie_stage3.o += -j ".pie.rockchip.text" -j ".pie.rockchip.data"
$(obj)/pie_stage3.o: $(obj)/pie_stage2.o
$(call if_changed,objcopy)