Lines Matching defs:shdr

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