From 7334bb46c6b398e85977d6f9d2341a9b53434687 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 27 Apr 2025 11:53:33 +0200 Subject: [ELFLOADER] Added lib loading/unloading logs to DLSYM_ERROR --- src/include/debug.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include/debug.h') diff --git a/src/include/debug.h b/src/include/debug.h index be216bd1..92425ad1 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -88,6 +88,13 @@ void printf_ftrace(int prefix, const char* fmt, ...); #define printf_dump(L, ...) printf_dump_prefix(1, L, __VA_ARGS__) #define printf_dlsym_prefix(prefix, L, ...) \ + do { \ + if (BOX64ENV(dlsym_error) || BOX64ENV(dump) || ((L) <= BOX64ENV(log))) { printf_ftrace(prefix, __VA_ARGS__); } \ + } while (0) + +#define printf_dlsym_dump(L, ...) printf_dlsym_dump_prefix(1, L, __VA_ARGS__) + +#define printf_dlsym_dump_prefix(prefix, L, ...) \ do { \ if (BOX64ENV(dlsym_error) || ((L) <= BOX64ENV(log))) { printf_ftrace(prefix, __VA_ARGS__); } \ } while (0) -- cgit 1.4.1