On 6/17/26 05:29, Kris Van Hees wrote:
DTrace uses ctf_arc_open() on systems where CTF is available, and that
function is not provided by libctf-nobfd as far as I know.  Is there a
problem with using libctf instead of libctf-nobfd?  Is the problem that
libctf requires libbfd, and that libbfd is versioned by binutils version
(like libopcodes is)?

yes, that's the issue. Then linking with -lctf -lbfd_pic would be the preferred solution for Debian.

objdump -T /usr/lib/x86_64-linux-gnu/libctf-nobfd.so.0.0.0|grep ctf_arc_open 00000000000061b0 g DF .text 0000000000000005 LIBCTF_1.0 ctf_arc_open_by_name_sections 00000000000061a0 g DF .text 0000000000000005 LIBCTF_1.0 ctf_arc_open_by_name

$ objdump -T /usr/lib/x86_64-linux-gnu/libctf.so.0.0.0|grep ctf_arc_open
0000000000007340 g DF .text 0000000000000005 LIBCTF_1.0 ctf_arc_open_by_name_sections 0000000000007330 g DF .text 0000000000000005 LIBCTF_1.0 ctf_arc_open_by_name
0000000000021be0 g    DF .text  000000000000000a  LIBCTF_1.0  ctf_arc_open

Reply via email to