OSDN Git Service

linker: unload RTLD_NODELETE libraries when loading fails
authorDimitry Ivanov <dimitry@google.com>
Wed, 13 Apr 2016 18:46:59 +0000 (11:46 -0700)
committerDimitry Ivanov <dimitry@google.com>
Wed, 13 Apr 2016 19:41:41 +0000 (12:41 -0700)
commitdd906d7da0595902bbf1b381c84fd9a8a4816973
treefe969282de6f716637055f5d5cd9c162205dbd81
parent868b6fa4261a1d09e016cab6f43dada0273694b8
linker: unload RTLD_NODELETE libraries when loading fails

Linker was not unloading libraries marked with RTLD_NODELETE
even when there was a error on load. For example when one of
dt_needed libraries was not found.

Bug: http://b/27911891
Change-Id: Ibc0bf110aa41fbfdc9f327ad8c364f2e3600af71
(cherry picked from commit 79abce42146b27d523f309e0a1bc9f50175191cb)
linker/linker.cpp