Reapply r221569, r233401, r233524 and r255105: Add support for a few

ARM/MIPS ELF section types in _libelf_xlate_shtype().
This commit is contained in:
Kai Wang 2014-01-25 13:53:46 +00:00
parent 2e503d34bd
commit ee3d625d72
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/elftoolchain/; revision=261158

View File

@ -82,6 +82,17 @@ _libelf_xlate_shtype(uint32_t sht)
return (ELF_T_VNEED);
case SHT_SUNW_versym: /* == SHT_GNU_versym */
return (ELF_T_HALF);
case SHT_ARM_PREEMPTMAP:
case SHT_ARM_ATTRIBUTES:
case SHT_ARM_DEBUGOVERLAY:
case SHT_ARM_OVERLAYSECTION:
case SHT_MIPS_DWARF:
case SHT_MIPS_REGINFO:
case SHT_MIPS_OPTIONS:
case SHT_AMD64_UNWIND: /* == SHT_IA_64_UNWIND == SHT_ARM_EXIDX */
return (ELF_T_BYTE);
default:
return (-1);
}