summaryrefslogtreecommitdiff
path: root/src/linker
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-19 11:34:35 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-19 11:34:35 +0200
commit924f18438f1ff33c4852ef2a266830aa16a4bec8 (patch)
tree188e4ed4d144d46f467ea04b171bf4f2a05dffbd /src/linker
parent092fafe6b85d72ba6a2cf17a6ab01b606616d440 (diff)
support running bionic binaries more properly
Diffstat (limited to 'src/linker')
-rw-r--r--src/linker/linker.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/linker/linker.c b/src/linker/linker.c
index 66fc593..2a1df13 100644
--- a/src/linker/linker.c
+++ b/src/linker/linker.c
@@ -1628,19 +1628,11 @@ void apkenv_call_constructors_recursive(soinfo *si)
// out above, the libc constructor will be called again (recursively!).
si->constructors_called = 1;
- if (si->flags & FLAG_EXE) {
- TRACE("[ %5d Calling preinit_array @ 0x%08x [%d] for '%s' ]\n",
- apkenv_pid, (unsigned)si->preinit_array, si->preinit_array_count,
- si->name);
- apkenv_call_array(si->preinit_array, si->preinit_array_count, 0);
- TRACE("[ %5d Done calling preinit_array for '%s' ]\n", apkenv_pid, si->name);
- } else {
- if (si->preinit_array) {
- DL_ERR("%5d Shared library '%s' has a preinit_array table @ 0x%08x."
- " This is INVALID.", apkenv_pid, si->name,
- (unsigned)si->preinit_array);
- }
- }
+ TRACE("[ %5d Calling preinit_array @ 0x%08x [%d] for '%s' ]\n",
+ apkenv_pid, (unsigned)si->preinit_array, si->preinit_array_count,
+ si->name);
+ apkenv_call_array(si->preinit_array, si->preinit_array_count, 0);
+ TRACE("[ %5d Done calling preinit_array for '%s' ]\n", apkenv_pid, si->name);
if (si->dynamic) {
unsigned *d;