From 8de1ddece0d0b85eafeb86c06cf3a734dadf2b55 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Thu, 4 Sep 2014 18:23:00 -0700 Subject: Fix order of soinfo links (repairs libcxx tests). (cherry picked from commit b2a30ee8d209154efc367db11b4167a5d6db605f) Change-Id: I59c5333bc050cbbea14051cea9220be2f64ee383 --- linker/linker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linker/linker.cpp') diff --git a/linker/linker.cpp b/linker/linker.cpp index 610489ea5..ac470a54b 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -1778,8 +1778,8 @@ void soinfo::CallDestructors() { void soinfo::add_child(soinfo* child) { if (has_min_version(0)) { - this->children.push_front(child); - child->parents.push_front(this); + child->parents.push_back(this); + this->children.push_back(child); } } -- cgit v1.2.3