https://sourceware.org/bugzilla/show_bug.cgi?id=22360
--- Comment #2 from federico.kircheis at gmail dot com <federico.kircheis at gmail dot com> --- Hi, thank you for your time. This is my X-problem: My goal was to find a way for mocking calls to the system for querying what time it is. I would like to test functions that may call "time", "chrono::now" and so on internally, and verify that they behave correctly. So my Y-Problem is: I thought that the "wrap" option could help me, it could be that there are other ways. My idea was to create the wrapper function, and call from the wrapper function, through dlsym(RTLD_NEXT, func_name)) the original function. I thought that with -wrap I could wrap the calls that are made to the system (and therefore not linked statically). Maybe I'm trying to wrap the wrong function if it is linked statically in libstdc++.so.6, right? This is what would be equivalent of your option a. I was not aware of LD_AUDIT, it seems it could be an alternate approach. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils