SHN_LORESERVE
if (sym->st_shndx >= SHN_LORESERVE)
if (index >= SHN_LORESERVE && index <= SHN_HIRESERVE)
if (shndx > SHN_UNDEF && shndx < SHN_LORESERVE)
if (new_shnum >= SHN_LORESERVE) {
return i != SHN_XINDEX && i >= SHN_LORESERVE && i <= SHN_HIRESERVE;
if (shdr_idx >= SHN_LORESERVE) {
if (!shdr_idx || shdr_idx >= SHN_LORESERVE) {
} else if (sym->st_shndx < SHN_LORESERVE) {
if (sym->st_shndx < SHN_LORESERVE && sym->st_shndx >= obj->sec_cnt) {
sym->sym.st_shndx < SHN_LORESERVE) ||
bool is_special_shndx = sym->sym.st_shndx >= SHN_LORESERVE &&
if (shndx < SHN_LORESERVE || is_special_shndx) {