From 765a039de238142dbcff94f34a277a5f25268d56 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 28 Dec 2009 00:05:10 +0000 Subject: [PATCH] Pre-load shared objects as libraries, so their symbols will be used automatically and a pre-loaded library will not be loaded again, when it's also a dependency. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34786 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/runtime_loader/elf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/runtime_loader/elf.cpp b/src/system/runtime_loader/elf.cpp index 58e88edc16..a2c1cbfe1a 100644 --- a/src/system/runtime_loader/elf.cpp +++ b/src/system/runtime_loader/elf.cpp @@ -305,7 +305,7 @@ preload_image(char const* path) KTRACE("rld: preload_image(\"%s\")", path); image_t *image = NULL; - status_t status = load_image(path, B_ADD_ON_IMAGE, NULL, &image); + status_t status = load_image(path, B_LIBRARY_IMAGE, NULL, &image); if (status < B_OK) { rld_unlock(); KTRACE("rld: preload_image(\"%s\") failed to load container: %s", path,