Add support for toc optimization in soong

Skip relinking against shared libraries whose interface hasn't changed.

Test: mmma -j frameworks/native/libs/gui
Test: touch frameworks/native/libs/gui/BufferItem.cpp
Test: mmma -j frameworks/native/libs/gui, see nothing relinks past libgui
Bug: 26014946
Change-Id: I4d4b8da6a35c682341ae51869f5c72b51e192053
This commit is contained in:
Colin Cross
2016-09-30 17:10:16 -07:00
parent 12013c8fe6
commit 26c34ede29
6 changed files with 166 additions and 11 deletions

View File

@@ -5,6 +5,7 @@
# Environment:
# CROSS_COMPILE: prefix added to readelf, objcopy tools
# Arguments:
# -i ${file}: input file (required)
# -o ${file}: output file (required)
# -d ${file}: deps file (required)
# --keep-symbols