Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/readelf/readelf.c
Show First 20 Lines • Show All 668 Lines • ▼ Show 20 Lines | phdr_type(unsigned int mach, unsigned int ptype) | ||||
case PT_INTERP: return "INTERP"; | case PT_INTERP: return "INTERP"; | ||||
case PT_NOTE: return "NOTE"; | case PT_NOTE: return "NOTE"; | ||||
case PT_SHLIB: return "SHLIB"; | case PT_SHLIB: return "SHLIB"; | ||||
case PT_PHDR: return "PHDR"; | case PT_PHDR: return "PHDR"; | ||||
case PT_TLS: return "TLS"; | case PT_TLS: return "TLS"; | ||||
case PT_GNU_EH_FRAME: return "GNU_EH_FRAME"; | case PT_GNU_EH_FRAME: return "GNU_EH_FRAME"; | ||||
case PT_GNU_STACK: return "GNU_STACK"; | case PT_GNU_STACK: return "GNU_STACK"; | ||||
case PT_GNU_RELRO: return "GNU_RELRO"; | case PT_GNU_RELRO: return "GNU_RELRO"; | ||||
case PT_OPENBSD_RANDOMIZE: return "OPENBSD_RANDOMIZE"; | |||||
case PT_OPENBSD_WXNEEDED: return "OPENBSD_WXNEEDED"; | |||||
case PT_OPENBSD_BOOTDATA: return "OPENBSD_BOOTDATA"; | |||||
default: | default: | ||||
if (ptype >= PT_LOOS && ptype <= PT_HIOS) | if (ptype >= PT_LOOS && ptype <= PT_HIOS) | ||||
snprintf(s_ptype, sizeof(s_ptype), "LOOS+%#x", | snprintf(s_ptype, sizeof(s_ptype), "LOOS+%#x", | ||||
ptype - PT_LOOS); | ptype - PT_LOOS); | ||||
else | else | ||||
snprintf(s_ptype, sizeof(s_ptype), "<unknown: %#x>", | snprintf(s_ptype, sizeof(s_ptype), "<unknown: %#x>", | ||||
ptype); | ptype); | ||||
return (s_ptype); | return (s_ptype); | ||||
▲ Show 20 Lines • Show All 6,872 Lines • Show Last 20 Lines |