Running the runtime loader directly, as in
"pmcstat -P <event> -O log /libexec/ld-elf.so.1 /bin/ls", logs an exec
of an object that has a PT_DYNAMIC header but no PT_INTERP.
pmcstat_process_elf_exec() then passed the NULL interpreter path to
pmcstat_image_from_path(), and pmcstat crashed, with -R or live with
-T. Only look up the loader when the image names one.
Add a test that records such a log and reads it back.
PR: 278347
Reported by: mizhka
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>