Lines Matching full:section
1 /* Return section name.
39 ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum) in ebl_section_name() argument
41 int section;
48 const char *res = ebl != NULL ? ebl->section_name (section, xsection,
53 if (section == SHN_UNDEF)
55 else if (section == SHN_ABS)
57 else if (section == SHN_COMMON)
59 else if (section == SHN_BEFORE)
61 else if (section == SHN_AFTER)
63 else if ((section < SHN_LORESERVE || section == SHN_XINDEX)
64 && (size_t) section < shnum)
66 int idx = section != SHN_XINDEX ? section : xsection;
78 /* Handle OS-specific section names. */
79 if (section == SHN_XINDEX)
81 else if (section >= SHN_LOOS && section <= SHN_HIOS)
82 snprintf (buf, len, "LOOS+%x", section - SHN_LOOS);
83 /* Handle processor-specific section names. */
84 else if (section >= SHN_LOPROC && section <= SHN_HIPROC)
85 snprintf (buf, len, "LOPROC+%x", section - SHN_LOPROC);
86 else if (section >= SHN_LORESERVE && section <= SHN_HIRESERVE)
87 snprintf (buf, len, "LORESERVE+%x", section - SHN_LORESERVE);
89 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section);