[COMMIT osv master] dynamic linker: adjust message when symbol missing

4 views
Skip to first unread message

Commit Bot

unread,
Aug 15, 2019, 11:01:56 PM8/15/19
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

dynamic linker: adjust message when symbol missing

This patch adjusts the message displayed by dynamic
linker to better reflect the case when symbol
is missing and should be ignored when loading
ELF objects with BIND_NOW.

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/core/elf.cc b/core/elf.cc
--- a/core/elf.cc
+++ b/core/elf.cc
@@ -624,7 +624,7 @@ symbol_module object::symbol(unsigned idx, bool
ignore_missing)
}
if (!ret.symbol) {
if (ignore_missing) {
- debug("%s: failed looking up symbol %s\n", pathname().c_str(),
demangle(name).c_str());
+ debug("%s: ignoring missing symbol %s\n", pathname().c_str(),
demangle(name).c_str());
} else {
abort("%s: failed looking up symbol %s\n", pathname().c_str(),
demangle(name).c_str());
}
Reply all
Reply to author
Forward
0 new messages