aboutsummaryrefslogtreecommitdiffstats
path: root/linker/linker.cpp
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-09-04 18:23:00 -0700
committerDmitriy Ivanov <dimitry@google.com>2014-10-01 16:00:41 -0700
commit8de1ddece0d0b85eafeb86c06cf3a734dadf2b55 (patch)
treecade8bf31022d3c5e0850d2de7303226a7d2f298 /linker/linker.cpp
parent59c12a652794273da22907a374222f4fa7d975c6 (diff)
downloadandroid_bionic-8de1ddece0d0b85eafeb86c06cf3a734dadf2b55.tar.gz
android_bionic-8de1ddece0d0b85eafeb86c06cf3a734dadf2b55.tar.bz2
android_bionic-8de1ddece0d0b85eafeb86c06cf3a734dadf2b55.zip
Fix order of soinfo links (repairs libcxx tests).
(cherry picked from commit b2a30ee8d209154efc367db11b4167a5d6db605f) Change-Id: I59c5333bc050cbbea14051cea9220be2f64ee383
Diffstat (limited to 'linker/linker.cpp')
-rw-r--r--linker/linker.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}
}