OSDN Git Service

Remove dangling links in secondary namespaces
authorDimitry Ivanov <dimitry@google.com>
Mon, 11 Apr 2016 19:42:58 +0000 (12:42 -0700)
committerDimitry Ivanov <dimitry@google.com>
Thu, 14 Apr 2016 19:51:55 +0000 (12:51 -0700)
commit0551c1d47bad202ce6dd90757067bc0fd217497a
tree73280d905b5d337f2ddd6b09ac41afd91d52f510
parent7095da8d3c0f45e41aff5ca3d61aa7c442e21bdf
Remove dangling links in secondary namespaces

linker didn't remove link to the soinfo from shared
namespaces on soinfo_unload, because it didn't keep
record of all namespaces the library is added to.

This change adds test for this and also fixes the
problem by introducing list of secondary namespaces
to soinfo, which is used to remove soinfo in
soinfo::remove_all_links().

Bug: http://b/28115950
Change-Id: Ifbf6e54f92fa6e88f86b6a8dd6dc22d4553afd22
(cherry picked from commit aca299ac4721809d6fc61e25c505bb59acd23fbc)
linker/linker.cpp
linker/linker.h
tests/dlext_test.cpp