commit | b56b5659b3996e98c2060f168d1cff1474e77d2a | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Sat Jul 18 01:11:10 2009 +0200 |
committer | David 'Digit' Turner <digit@google.com> | Sat Jul 18 01:11:10 2009 +0200 |
tree | 11135868d3dc4a731f7288bcb00abdf48c5c7202 | |
parent | ef0bd1857041ffde069cf52138aaf22c1af7130e [diff] |
Fix the C library runtime initialization order. This allows libc.so to run the C runtime initializer as soon as the dynamic linker loads the shared library, i.e. before any other initializers (e.g. static C++ constructors in other shared libraries the executable depends on). This also removes the bug where the initializers from the executable itself were run twice: once by the dynamic linker, and another time by __libc_init as defined by libc_init_dynamic.c