Skip to contentSkip to conversation

debug-for-missing-loader-and-libc

PATCH New Maninder Singh 1 participant 1 message Apr 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debug-for-missing-loader-and-libc

Hi,

prelink gives below error message for failure dependency:
./prelink: /test_binary: Could not find one of the dependencies

This provides name of dependent library which is missing like below:
./prelink: /test_binary: Could not find one of the dependencies:
./prelink-rtld: error while loading shared libraries: libB.so: cannot open shared object file: No such file or directory where libB.so is missing dependecy

---
 src/gather.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
src/gather.c +2 -2
index 5ccd243..4a3f428 100644
@@ -240,8 +240,8 @@ gather_deps (DSO *dso, struct prelink_entry *ent)
          if (q != NULL)
            {
              error (0, 0,
-                "%s: Could not find one of the dependencies",
-                ent->filename);
+                "%s: Could not find one of the dependencies:\n%s",
+                ent->filename, line);
              goto error_out;
            }
        }

--

Thanks
Maninder Singh