Lines Matching refs:shdr
163 process_section(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_section() argument
175 isp->is_shdr = shdr; in process_section()
188 if ((shdr->sh_flags & SHF_EXCLUDE) && in process_section()
203 if (shdr->sh_flags & ALL_SHF_ORDER) { in process_section()
1167 Shdr *shdr = isp->is_shdr; in process_capinfo() local
1170 capinfonum = (Word)(shdr->sh_size / shdr->sh_entsize); in process_capinfo()
1280 process_input(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_input() argument
1283 return (process_section(name, ifl, shdr, scn, ndx, in process_input()
1295 process_reloc(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_reloc() argument
1299 shdr, scn, ndx, ld_targ.t_id.id_null, ofl) == S_ERROR) in process_reloc()
1303 if (shdr->sh_entsize && (shdr->sh_entsize <= shdr->sh_size)) in process_reloc()
1306 (Word)(shdr->sh_size / shdr->sh_entsize); in process_reloc()
1320 process_strtab(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_strtab() argument
1346 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_strtab()
1375 invalid_section(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in invalid_section() argument
1383 ifl->ifl_ehdr->e_machine, shdr->sh_type, 0, &inv_buf)); in invalid_section()
1434 process_progbits_alloc(const char *name, Ifl_desc *ifl, Shdr *shdr, in process_progbits_alloc() argument
1528 process_progbits(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_progbits() argument
1571 if (shdr->sh_flags & SHF_TLS) { in process_progbits()
1573 } else if ((shdr->sh_flags & ~ALL_SHF_IGNORE) == in process_progbits()
1576 } else if (shdr->sh_flags & SHF_ALLOC) { in process_progbits()
1577 if (process_progbits_alloc(name, ifl, shdr, ndx, in process_progbits()
1585 r = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_progbits()
1601 process_debug(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_debug() argument
1610 return (process_progbits(name, ifl, shdr, scn, ndx, ident, ofl)); in process_debug()
1617 process_nobits(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_nobits() argument
1621 if (shdr->sh_flags & SHF_TLS) in process_nobits()
1624 else if ((shdr->sh_flags & SHF_AMD64_LARGE) && in process_nobits()
1631 return (process_section(name, ifl, shdr, scn, ndx, ident, ofl)); in process_nobits()
1638 process_array(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_array() argument
1646 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_array()
1658 Shdr *shdr; in array_process() local
1663 shdr = isc->is_shdr; in array_process()
1665 if ((shdr->sh_type == SHT_FINI_ARRAY) && in array_process()
1668 else if ((shdr->sh_type == SHT_INIT_ARRAY) && in array_process()
1671 else if ((shdr->sh_type == SHT_PREINIT_ARRAY) && in array_process()
1682 process_sym_shndx(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_sym_shndx() argument
1685 if (process_input(name, ifl, shdr, scn, ndx, ident, ofl) == S_ERROR) in process_sym_shndx()
1691 if (shdr->sh_link < ndx) { in process_sym_shndx()
1692 Is_desc *isp = ifl->ifl_isdesc[shdr->sh_link]; in process_sym_shndx()
1698 EC_WORD(ndx), name, EC_XWORD(shdr->sh_link)); in process_sym_shndx()
1738 process_rel_dynamic(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_rel_dynamic() argument
1755 if ((strscn = elf_getscn(ifl->ifl_elf, shdr->sh_link)) == NULL) { in process_rel_dynamic()
2081 process_dynamic_isgnu(const char *name, Ifl_desc *ifl, Shdr *shdr, in process_dynamic_isgnu() argument
2088 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_dynamic_isgnu()
2333 process_group(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_group() argument
2338 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_group()
2362 Shdr *shdr = isc->is_shdr; in rel_process() local
2368 if (shdr->sh_type != ld_targ.t_m.m_rel_sht_type) { in rel_process()
2372 ifl->ifl_ehdr->e_machine, shdr->sh_type, 0, &inv_buf)); in rel_process()
2383 rndx = shdr->sh_info; in rel_process()
2434 process_exclude(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_exclude() argument
2443 if (shdr->sh_type == SHT_SYMTAB || shdr->sh_type == SHT_DYNSYM) in process_exclude()
2449 if (shdr->sh_flags & SHF_ALLOC) { in process_exclude()
2461 return (process_section(name, ifl, shdr, scn, ndx, 0, ofl)); in process_exclude()
2534 Shdr *shdr; in process_elf() local
2564 if ((shdr = elf_getshdr(scn)) == NULL) { in process_elf()
2569 if ((name = elf_strptr(elf, (size_t)sndx, (size_t)shdr->sh_name)) == in process_elf()
2576 if (ld_sup_input_section(ofl, ifl, name, &shdr, sndx, scn, in process_elf()
2584 if ((name = elf_strptr(elf, (size_t)sndx, (size_t)shdr->sh_name)) == in process_elf()
2591 error = process_strtab(name, ifl, shdr, scn, sndx, FALSE, ofl); in process_elf()
2623 if ((shdr = elf_getshdr(scn)) == NULL) { in process_elf()
2628 name = str + (size_t)(shdr->sh_name); in process_elf()
2630 if (ld_sup_input_section(ofl, ifl, name, &shdr, ndx, scn, in process_elf()
2638 name = str + (size_t)(shdr->sh_name); in process_elf()
2640 row = shdr->sh_type; in process_elf()
2646 if (((shdr->sh_flags & SHF_EXCLUDE) != 0) && in process_elf()
2648 if ((error = process_exclude(name, ifl, shdr, scn, in process_elf()
2661 if (Initial[row][column](name, ifl, shdr, scn, in process_elf()
2679 shdr->sh_type, 0, &inv_buf)); in process_elf()
2687 if (process_section(name, ifl, shdr, scn, in process_elf()
2692 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2698 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2705 if (process_debug(name, ifl, shdr, scn, in process_elf()
2710 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2715 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2721 if (process_progbits(name, ifl, shdr, scn, in process_elf()
2726 if (process_progbits(name, ifl, shdr, scn, in process_elf()
2732 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2738 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2744 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2759 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()
2782 if (process_section(name, ifl, shdr, in process_elf()
2793 if (process_section(name, ifl, shdr, scn, ndx, in process_elf()