Re: On demand static/shared libs and binary linkage

2018-06-07 Thread Mark Wielaard
On Thu, Jun 07, 2018 at 03:59:22PM +0200, Laurent Stacul wrote: > Understood. > > In this case, there are 2 solutions: > > - we completely remove the call to dlopen > - we keep the call to dlopen from the shared lib version of libdw and > embed all the backends code in the archive > > I don't kn

Re: On demand static/shared libs and binary linkage

2018-06-07 Thread Laurent Stacul
Understood. In this case, there are 2 solutions: - we completely remove the call to dlopen - we keep the call to dlopen from the shared lib version of libdw and embed all the backends code in the archive I don't know if the second solution is worth the additional work/complexity. What do you thi

On demand static/shared libs and binary linkage

2018-06-07 Thread Laurent Stacul
Hello, I am quite new on elfutils library. I know their were discussions in the past about the question I will ask but let me introduce my use case. I am working on a project which aims at building some kind of "standalone" toolchain (binutils, gcc, clang + tools like gdb, valgrind). This toolcha