OSDN Git Service

Log dlopen failures caused by text relocations
authorDmitriy Ivanov <dimitry@google.com>
Tue, 13 Oct 2015 18:07:56 +0000 (11:07 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Tue, 13 Oct 2015 18:13:19 +0000 (11:13 -0700)
commitf32b689d3dbe7a1317bce58d1d9bef9bba173c66
tree3cc66a24e8750ba2929b42c53f5e932cf5e7d194
parenta828a2f8e6fd5271787a7dea4c682cbf54425a14
Log dlopen failures caused by text relocations

Some apps will fail to load native libraries with
text relocations when switching target sdk version to M.
It could be hard to diagnose because some of them
suppress dlerror and/or UnsatisfiedLinkError.

This change unconditionally logs the error message making
the cause of the failure more visible to developers.

Bug: http://b/24876001
Change-Id: I0477a0d1307d0879000f3a3a43b974b4cf34bdb2
linker/linker.cpp