Refurbish arc_elf_object_p() function