Thomas Monjalon, Oct 12, 2022 at 18:16: > What about implementing both? > If ldd is available, use it, > otherwise use LD_TRACE_LOADED_OBJECTS variable.
This is a bit overkill in my opinion. Also it would make the behaviour somewhat different whether ldd is available and/or the analyzed binaries are executable. I think it is an OK limitation to require that the analyzed ELF files are executable. By the way, the following command: LD_TRACE_LOADED_OBJECTS=1 build/app/dpdk-test-pmd Works both on Linux and FreeBSD and produces similar outputs.