loader elf: fix a bug that wrong information is used in the recent commit

The commit is da6741e994e5ac38010a3ecb433cfa007ee22d9a.

We need type information from info by ELFXX_ST_BIND() like bind
information.