correct analysis segments within elf binary
correct analysis segments within elf binary

when using elf_memory to check for if a segment in an elf binary
is itself an elf binary (e.g., a CUBIN), elf_memory may return
a descriptor that indicates the segment is not an elf binary
rather than returning NULL.

HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit