[DTrace-devel] [PATCH v3] USDT, phase 1

Nick Alcock nick.alcock at oracle.com
Wed Sep 21 14:57:50 UTC 2022


On 15 Sep 2022, Kris Van Hees outgrape:

> One overarching problem: when testing with Debian unstable I see the issue that
> various trigger executables with USDT probes cannot be linked.

Oh how wonderful :/

> Debian unstable has: GNU ld (GNU Binutils for Debian) 2.38.90.20220713
>
> The error is:
>
> LINK: usdt-tst-argmap
> /usr/bin/ld: /scratch/dtrace-bpf-user/build/test-triggers--usdt-tst-argmap.o: relocation R_X86_64_NONE against absolute symbol `__dtrace_test_prov___place' in section `.text.startup' is disallowed
> collect2: error: ld returned 1 exit status
>
> So, I anticipate that there will be issues once systems start moving to a newer
> binutils.  We should be ahead of the curve and see why this problem occurs and
> either do something to avoid it or (if warranted) submit a patch to fix
> binutils.

We're just using the wrong reloc, I think. I suspect Debian is linking
this thing PIE by default now... I guess I should look at this.



More information about the DTrace-devel mailing list