]> git.kaiwu.me - haproxy.git/commit
MINOR: sym: use the symbol table to resolve a DSO name
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 28 Oct 2026 17:51:13 +0000 (18:51 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 29 Oct 2026 14:18:35 +0000 (15:18 +0100)
commite596dcdca89c04cd8ed53d4f8c4004aa824fb3b2
tree79117d372da636a794a20a9e43becad2d75f3bdc
parent030ae75ff87b302a646f014751b70f33ad0ae6b0
MINOR: sym: use the symbol table to resolve a DSO name

resolve_dso_name() only used dladdr() to find the object containing an
address. Our in-process symbol table also knows the owning object, is
lock-free and async-signal-safe, and also works on static builds where
dladdr() may not. Try it first and keep dladdr() as a fallback for
addresses that are not covered by any symbol, or when the table has not
been built yet.
src/sym.c