Lines Matching defs:shdr
359 Shdr *shdr;
364 ((shdr = isc->is_shdr) == NULL) ||
365 ((shdr->sh_flags & SHF_ALLOC) == 0))
438 Shdr *shdr;
647 if ((shdr = libld_calloc(sizeof (Shdr), 1)) == NULL)
649 shdr->sh_type = shtype;
650 shdr->sh_size = size;
651 shdr->sh_flags = sec_info->sh_flags;
652 shdr->sh_addralign = sec_info->align;
653 shdr->sh_entsize = sec_info->sh_entsize;
661 isec->is_shdr = shdr;
666 *ret_shdr = shdr;
694 Shdr *shdr;
711 if ((shdr = libld_malloc(sizeof (Shdr))) == NULL)
713 *shdr = *tmpl_isp->is_shdr;
714 shdr->sh_addr = 0;
715 shdr->sh_offset = 0;
716 shdr->sh_size = size;
724 isec->is_shdr = shdr;
729 *ret_shdr = shdr;
745 Shdr *shdr;
757 &isec, &shdr, &data) == S_ERROR)
763 shdr->sh_size = size;
764 shdr->sh_addralign = align;
769 shdr->sh_flags |= SHF_TLS;
780 shdr->sh_flags |= SHF_AMD64_LARGE;
825 Shdr *shdr;
839 if (new_section(ofl, shtype, sectname, entcount, &isec, &shdr, &data) ==
907 Shdr *shdr;
912 &isec, &shdr, &data) == S_ERROR)
919 shdr->sh_size = (Xword)data->d_size;
920 shdr->sh_flags = 0;
921 shdr->sh_addralign = 1;
938 Shdr *shdr;
966 &isec, &shdr, &data) == S_ERROR)
975 shdr->sh_flags |= SHF_ALLOC;
983 shdr->sh_flags |= SHF_WRITE;
1299 size = cnt * (size_t)shdr->sh_entsize;
1301 shdr->sh_size = (Xword)size;
1323 Shdr *shdr;
1329 &isec, &shdr, &data) == S_ERROR)
1334 shdr->sh_flags |= SHF_WRITE;
1335 shdr->sh_size = (Xword)size;
1336 shdr->sh_entsize = ld_targ.t_m.m_got_entsize;
1354 Shdr *shdr;
1388 &isec, &shdr, &data) == S_ERROR)
1392 shdr->sh_size = (Xword)size;
1393 data->d_align = shdr->sh_addralign = 1;
1409 Shdr *shdr;
1417 if (new_section(ofl, stype, sectname, 0, &isec, &shdr, &data) ==
1596 Shdr *shdr;
1694 &shdr, &data) == S_ERROR)
1697 if ((data->d_buf = libld_malloc(shdr->sh_size)) == NULL)
1865 shdr->sh_flags |= SHF_INFO_LINK;
1893 ofl->ofl_capchaincnt, &isec, &shdr,
1914 Shdr *shdr;
1929 &isec, &shdr, &data) == S_ERROR)
1935 shdr->sh_flags = ld_targ.t_m.m_plt_shf_flags;
1936 shdr->sh_size = (Xword)size;
1937 shdr->sh_addralign = ld_targ.t_m.m_plt_align;
1938 shdr->sh_entsize = ld_targ.t_m.m_plt_entsize;
1958 Shdr *shdr;
1970 &isec, &shdr, &data) == S_ERROR)
1996 size = cnt * shdr->sh_entsize;
2004 shdr->sh_size = (Xword)size;
2016 Shdr *shdr;
2028 &isec, &shdr, &data) == S_ERROR)
2063 size = symcnt * shdr->sh_entsize;
2069 shdr->sh_size = (Xword)size;
2097 Shdr *shdr, *lshdr;
2129 &isec, &shdr, &data) == S_ERROR)
2146 size = (size_t)cnt * shdr->sh_entsize;
2152 shdr->sh_size = (Xword)size;
2162 size = (size_t)cnt * shdr->sh_entsize;
2179 Shdr *shdr;
2191 &isec, &shdr, &data) == S_ERROR)
2203 ofl->ofl_dyntlssortcnt, &isec, &shdr, &data) == S_ERROR)
2225 Shdr *shdr, *dynshdr;
2233 &isec, &shdr, &data) == S_ERROR)
2276 Shdr *shdr;
2282 0, &isec, &shdr, &data) == S_ERROR)
2298 shdr->sh_size = (Xword)size;
2309 Shdr *shdr;
2326 0, &isec, &shdr, &data) == S_ERROR)
2331 shdr->sh_size = (Xword)size;
2344 Shdr *shdr;
2400 0, &isec, &shdr, &data) == S_ERROR)
2405 shdr->sh_flags |= SHF_ALLOC;
2410 shdr->sh_size = (Xword)size;
2427 Shdr *shdr;
2474 &shdr, &data) == S_ERROR)
2479 shdr->sh_size = (Xword)size;
2481 shdr->sh_flags = SHF_ALLOC;
2488 shdr->sh_flags |= SHF_INFO_LINK;
2541 Shdr *shdr;
2550 0, &isec, &shdr, &data) == S_ERROR)
2555 shdr->sh_size = (Xword)ofl->ofl_verneedsz;
2571 Shdr *shdr;
2597 0, &isec, &shdr, &data) == S_ERROR)
2602 shdr->sh_size = (Xword)ofl->ofl_verdefsz;
2615 Shdr *shdr;
2621 &isec, &shdr, &data) == S_ERROR)
2624 shdr->sh_flags |= SHF_WRITE;
2626 shdr->sh_size = (Xword)size;
2629 shdr->sh_addralign = align;
2658 Shdr *shdr;
2667 mv_nums, &isec, &shdr, &data) == S_ERROR)
3100 Shdr *shdr = osp->os_shdr;
3101 size_t size = cnt * shdr->sh_entsize;
3103 shdr->sh_size = (Xword)size;
3412 Shdr *shdr;
3417 &isec, &shdr, &data) == S_ERROR)
3421 shdr->sh_size = (Xword)size;
3422 shdr->sh_flags |= SHF_WRITE;
3437 Shdr *shdr;
3449 &isec, &shdr, &data) == S_ERROR)
3453 shdr->sh_size = (Xword)size;
3454 shdr->sh_flags |= SHF_EXECINSTR;