[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22360] Wl not wrapping all functions call
From: |
federico.kircheis at gmail dot com |
Subject: |
[Bug binutils/22360] Wl not wrapping all functions call |
Date: |
Sat, 28 Oct 2017 08:50:31 +0000 |
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.