Lines Matching refs:section
39 ebl_section_name (Ebl *ebl, int section, int xsection, char *buf, size_t len, in ebl_section_name() argument
42 const char *res = ebl != NULL ? ebl->section_name (section, xsection, in ebl_section_name()
47 if (section == SHN_UNDEF) in ebl_section_name()
49 else if (section == SHN_ABS) in ebl_section_name()
51 else if (section == SHN_COMMON) in ebl_section_name()
53 else if (section == SHN_BEFORE) in ebl_section_name()
55 else if (section == SHN_AFTER) in ebl_section_name()
57 else if ((section < SHN_LORESERVE || section == SHN_XINDEX) in ebl_section_name()
58 && (size_t) section < shnum) in ebl_section_name()
60 int idx = section != SHN_XINDEX ? section : xsection; in ebl_section_name()
73 if (section == SHN_XINDEX) in ebl_section_name()
75 else if (section >= SHN_LOOS && section <= SHN_HIOS) in ebl_section_name()
76 snprintf (buf, len, "LOOS+%x", section - SHN_LOOS); in ebl_section_name()
78 else if (section >= SHN_LOPROC && section <= SHN_HIPROC) in ebl_section_name()
79 snprintf (buf, len, "LOPROC+%x", section - SHN_LOPROC); in ebl_section_name()
80 else if (section >= SHN_LORESERVE && section <= SHN_HIRESERVE) in ebl_section_name()
81 snprintf (buf, len, "LORESERVE+%x", section - SHN_LORESERVE); in ebl_section_name()
83 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section); in ebl_section_name()