Do not pack relocations for libc.so

Bug: http://b/20645321
Bug: http://b/20655855
Change-Id: Ia4470e0a6d388a7f8445c7f7f9a5639689c0fe32
This commit is contained in:
Dmitriy Ivanov
2015-04-28 14:52:47 -07:00
parent 62a0a63e07
commit 452742d2bf

View File

@@ -1361,6 +1361,9 @@ LOCAL_ADDITIONAL_DEPENDENCIES := \
# meaningful name resolution. # meaningful name resolution.
LOCAL_STRIP_MODULE := keep_symbols LOCAL_STRIP_MODULE := keep_symbols
# Do not pack libc.so relocations; see http://b/20645321 for details.
LOCAL_PACK_MODULE_RELOCATIONS := false
# WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries, # WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries,
# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This # make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This
# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared # ensures that symbols that are pulled into those new libraries from libgcc.a are not declared