OSDN Git Service

linker: log only real dlerrors
authorDimitry Ivanov <dimitry@google.com>
Tue, 28 Mar 2017 18:08:58 +0000 (11:08 -0700)
committerDimitry Ivanov <dimitry@google.com>
Tue, 28 Mar 2017 22:03:12 +0000 (15:03 -0700)
commite7cdb2953aa8846826082ee11d571e67a4c1246b
treef7468954db36b7b1b3a14bc4ddf555655b6fc33f
parent7359c82a50dcc0e312227fafc9ccaeda97c599f0
linker: log only real dlerrors

Currently linker reports all potential dlerrors
for example if library was not found in 'this'
namespace - it initializes linker error buffer
with not found message but when consequent
search in linked namespace succeeds this message
is droped because dlopen was successful.

This commit avoids logging false positive error
messages when debug.ld.* set to dlerror.

Test: manual
Change-Id: I480694a1b1bbacd6bd1d8505cd2ee491710964cc
(cherry picked from commit 11968b80af5be601b820f261e2e102e5b8ed48c4)
linker/dlfcn.cpp
linker/linker_globals.h