mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
2e503d34bd
commit
ee3d625d72
1 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue