I can confirm this. I was actually involved in implementing OMPT support in the 
LLVM OpenMP runtime and the startup works by overwriting the weak symbol 
ompt_start_tool via LD_PRELOAD. The symbol is there, as seen with
 $ objdump -T /usr/lib/x86_64-linux-gnu/libomp.so.5 | grep ompt
00000000000aa4b0  w   DF .text  0000000000000036  VERSION     ompt_start_tool

but there is no relocation:
 $ readelf --relocs /usr/lib/x86_64-linux-gnu/libomp.so.5 | grep ompt
[no output]

This might actually be the same problem as
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1964487
that I just reported.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1899199

Title:
  [libomp.so.5] OMPT with LD_PRELOAD not working

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1899199/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to