|
Message-ID: <20220331182628.7ofplkycqrjkoyov@nixos> Date: Thu, 31 Mar 2022 14:26:28 -0400 From: Amine Chikhaoui <amine@...khaoui.org> To: musl@...ts.openwall.com Subject: Question: dladdr alternative for symbol info lookup with full static linking Hello, I posted this question on #musl irc a week or so ago, but I don't think anyone noticed so trying the mailing list instead: >> I have a C++ project that I'm trying to statically link using musl. >> Part of it has some logic for printing stacktraces, it does that by >> using <unwind.h> from libgcc, but then when it gets to dladdr((void*) >> ip, &info), where ip is the result of _Unwind_GetIPInfo, that seems to >> always return an error. >> It seems that this isn't the correct way to do things when statically >> linking, is there an easy way to handle this? the main thing it tries >> to do is get the function/symbol name demangled using >> abi::__cxa_demangle later and print a stacktrace. Just looking for any alternatives for doing something similar in order to print a useful stacktrace when in a statically linked binary context. Amine
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.