summaryrefslogtreecommitdiffstats
path: root/core/definitions.mk
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2015-04-20 16:59:05 -0700
committerDmitriy Ivanov <dimitry@google.com>2015-04-23 12:07:16 -0700
commit4c2d1a64fb49e706a8c7877bb40212ada78d25d7 (patch)
treed36992ba06dfdf2b7cf182a7ad72fb3f73c4314a /core/definitions.mk
parent1ff47c7f36263a701797ac76594fa45ae2d89389 (diff)
downloadbuild-4c2d1a64fb49e706a8c7877bb40212ada78d25d7.zip
build-4c2d1a64fb49e706a8c7877bb40212ada78d25d7.tar.gz
build-4c2d1a64fb49e706a8c7877bb40212ada78d25d7.tar.bz2
Pack relocation tables for dynamic executables
Add replocation-packer step for dynmic executables. Enable it by default for arm and arm64 platforms. Bug: http://b/18051137 Change-Id: I0c88fd31595bcea62a087f219acb9ecf9c80f2e5
Diffstat (limited to 'core/definitions.mk')
-rw-r--r--core/definitions.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/definitions.mk b/core/definitions.mk
index 8087f79..b6e5277 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1452,6 +1452,15 @@ $(hide) $(PRIVATE_OBJCOPY) \
$(TARGET_STRIP_KEEP_SYMBOLS_EXTRA) $< $@
endef
+###########################################################
+## Commands for packing a target executable or library
+###########################################################
+
+define pack-elf-relocations
+$(copy-file-to-target)
+@echo "target Pack Relocations: $(PRIVATE_MODULE) ($@)"
+$(hide) $(RELOCATION_PACKER) $@
+endef
###########################################################
## Commands for running gcc to link an executable