Lines Matching refs:shdr

529   assert (SCNINFO_SHDR (fileinfo->scninfo[newgrpid].shdr).sh_type  in matching_group_comdat_scn()
531 assert (SCNINFO_SHDR (oldp->file->scninfo[oldgrpid].shdr).sh_type in matching_group_comdat_scn()
658 SCNINFO_SHDR (fileinfo->scninfo[shndx].shdr).sh_name); in check_definition()
683 SCNINFO_SHDR (oldfile->scninfo[shndx].shdr).sh_name); in check_definition()
834 SCNINFO_SHDR (fileinfo->scninfo[shndx].shdr).sh_name)); in find_section_group()
872 XElf_Shdr *shdr = &SCNINFO_SHDR (fileinfo->scninfo[idx].shdr); in mark_section_group() local
878 elf_strptr (fileinfo->elf, fileinfo->shstrndx, shdr->sh_name)); in mark_section_group()
884 shdr->sh_name)) in mark_section_group()
886 && ((shdr->sh_type != SHT_RELA && shdr->sh_type != SHT_REL) in mark_section_group()
890 SCNINFO_SHDR (fileinfo->scninfo[shdr->sh_info].shdr).sh_name))))) in mark_section_group()
912 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); in mark_section_used() local
914 if (unlikely (scninfo->shdr == NULL)) in mark_section_used()
916 if (unlikely (scninfo->shdr.sh_type == SHT_NULL)) in mark_section_used()
920 shdr = xelf_getshdr (scninfo->scn, scninfo->shdr); in mark_section_used()
922 xelf_getshdr_copy (scninfo->scn, shdr, scninfo->shdr); in mark_section_used()
924 if (unlikely (shdr == NULL)) in mark_section_used()
931 if (unlikely (shdr->sh_link != 0)) in mark_section_used()
934 mark_section_used (&scninfo->fileinfo->scninfo[shdr->sh_link], in mark_section_used()
935 shdr->sh_link, &ignore); in mark_section_used()
939 if (unlikely (shdr->sh_info != 0) && (shdr->sh_flags & SHF_INFO_LINK)) in mark_section_used()
942 mark_section_used (&scninfo->fileinfo->scninfo[shdr->sh_info], in mark_section_used()
943 shdr->sh_info, &ignore); in mark_section_used()
946 if (unlikely (shdr->sh_flags & SHF_GROUP) && ld_state.gc_sections) in mark_section_used()
962 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); in add_section() local
976 || (shdr->sh_flags & SHF_ALLOC) != 0 in add_section()
977 || shdr->sh_type == SHT_NOTE in add_section()
978 || (shdr->sh_type == SHT_PROGBITS in add_section()
981 shdr->sh_name), ".comment") == 0)) in add_section()
986 if ((shdr->sh_flags & SHF_GROUP) && grpscn == NULL) in add_section()
994 search.name = elf_strptr (fileinfo->elf, fileinfo->shstrndx, shdr->sh_name); in add_section()
995 search.type = shdr->sh_type; in add_section()
996 search.flags = shdr->sh_flags; in add_section()
997 search.entsize = shdr->sh_entsize; in add_section()
1010 if (unlikely (shdr->sh_flags & SHF_GROUP)) in add_section()
1031 if (SCNINFO_SHDR (runp->shdr).sh_flags & SHF_GROUP) in add_section()
1059 shdr->sh_flags); in add_section()
1060 queued->align = MAX (queued->align, shdr->sh_addralign); in add_section()
1070 queued->type = shdr->sh_type; in add_section()
1071 queued->flags = shdr->sh_flags; in add_section()
1072 queued->align = shdr->sh_addralign; in add_section()
1073 queued->entsize = shdr->sh_entsize; in add_section()
1079 ld_state.need_tls |= (shdr->sh_flags & SHF_TLS) != 0; in add_section()
1129 XElf_Shdr *shdr; in add_relocatable_file() local
1131 if (fileinfo->scninfo[cnt].shdr == NULL) in add_relocatable_file()
1133 if (fileinfo->scninfo[cnt].shdr.sh_type == SHT_NULL) in add_relocatable_file()
1137 shdr = xelf_getshdr (fileinfo->scninfo[cnt].scn, in add_relocatable_file()
1138 fileinfo->scninfo[cnt].shdr); in add_relocatable_file()
1140 xelf_getshdr_copy (fileinfo->scninfo[cnt].scn, shdr, in add_relocatable_file()
1141 fileinfo->scninfo[cnt].shdr); in add_relocatable_file()
1143 if (shdr == NULL) in add_relocatable_file()
1152 shdr = &SCNINFO_SHDR (fileinfo->scninfo[cnt].shdr); in add_relocatable_file()
1157 has_merge_sections |= (shdr->sh_flags & SHF_MERGE) != 0; in add_relocatable_file()
1158 has_tls_symbols |= (shdr->sh_flags & SHF_TLS) != 0; in add_relocatable_file()
1164 if (unlikely (shdr->sh_type == SHT_SYMTAB) in add_relocatable_file()
1165 || unlikely (shdr->sh_type == SHT_DYNSYM)) in add_relocatable_file()
1167 if (shdr->sh_type == SHT_SYMTAB) in add_relocatable_file()
1171 fileinfo->nsymtab = shdr->sh_size / shdr->sh_entsize; in add_relocatable_file()
1172 fileinfo->nlocalsymbols = shdr->sh_info; in add_relocatable_file()
1173 fileinfo->symstridx = shdr->sh_link; in add_relocatable_file()
1179 fileinfo->ndynsymtab = shdr->sh_size / shdr->sh_entsize; in add_relocatable_file()
1180 fileinfo->dynsymstridx = shdr->sh_link; in add_relocatable_file()
1185 if (secttype == shdr->sh_type) in add_relocatable_file()
1189 symstridx = shdr->sh_link; in add_relocatable_file()
1190 nsymbols = shdr->sh_size / shdr->sh_entsize; in add_relocatable_file()
1191 nlocalsymbols = shdr->sh_info; in add_relocatable_file()
1194 else if (unlikely (shdr->sh_type == SHT_SYMTAB_SHNDX)) in add_relocatable_file()
1199 else if (unlikely (shdr->sh_type == SHT_GNU_versym)) in add_relocatable_file()
1204 else if (unlikely (shdr->sh_type == SHT_GNU_verdef)) in add_relocatable_file()
1213 fileinfo->nverdef = nversions = shdr->sh_info; in add_relocatable_file()
1223 else if (unlikely (shdr->sh_type == SHT_GNU_verneed)) in add_relocatable_file()
1228 else if (unlikely (shdr->sh_type == SHT_DYNAMIC)) in add_relocatable_file()
1233 else if (unlikely (shdr->sh_type == SHT_GROUP)) in add_relocatable_file()
1253 symscn = elf_getscn (fileinfo->elf, shdr->sh_link); in add_relocatable_file()
1263 xelf_getsym (symdata, shdr->sh_info, sym); in add_relocatable_file()
1286 symbol->symidx = shdr->sh_info; in add_relocatable_file()
1297 shdr->sh_name), in add_relocatable_file()
1308 shdr->sh_name), in add_relocatable_file()
1323 shdr->sh_name), in add_relocatable_file()
1334 else if (! SECTION_TYPE_P (&ld_state, shdr->sh_type) in add_relocatable_file()
1335 && unlikely ((shdr->sh_flags & SHF_OS_NONCONFORMING) != 0)) in add_relocatable_file()
1343 shdr->sh_name), in add_relocatable_file()
1344 (int) shdr->sh_type); in add_relocatable_file()
1351 && likely (shdr->sh_type == SHT_PROGBITS in add_relocatable_file()
1352 || shdr->sh_type == SHT_RELA in add_relocatable_file()
1353 || shdr->sh_type == SHT_REL in add_relocatable_file()
1354 || shdr->sh_type == SHT_NOTE in add_relocatable_file()
1355 || shdr->sh_type == SHT_NOBITS in add_relocatable_file()
1356 || shdr->sh_type == SHT_INIT_ARRAY in add_relocatable_file()
1357 || shdr->sh_type == SHT_FINI_ARRAY in add_relocatable_file()
1358 || shdr->sh_type == SHT_PREINIT_ARRAY)) in add_relocatable_file()
1361 if (shdr->sh_type == SHT_PROGBITS in add_relocatable_file()
1362 && (shdr->sh_flags & SHF_EXECINSTR) == 0 in add_relocatable_file()
1364 shdr->sh_name), in add_relocatable_file()
1419 && ((SCNINFO_SHDR (fileinfo->scninfo[shndx].shdr).sh_flags in add_relocatable_file()
1621 if (SCNINFO_SHDR (fileinfo->scninfo[shndx].shdr).sh_flags in add_relocatable_file()
2741 compute_copy_reloc_offset (XElf_Shdr *shdr) in compute_copy_reloc_offset() argument
2760 XElf_Off symalign = MAX (SCNINFO_SHDR (runp->file->scninfo[runp->scndx].shdr).sh_addralign, 1); in compute_copy_reloc_offset()
2773 shdr->sh_type = SHT_NOBITS; in compute_copy_reloc_offset()
2774 shdr->sh_size = offset; in compute_copy_reloc_offset()
2775 shdr->sh_addralign = maxalign; in compute_copy_reloc_offset()
2780 compute_common_symbol_offset (XElf_Shdr *shdr) in compute_common_symbol_offset() argument
2805 shdr->sh_type = SHT_NOBITS; in compute_common_symbol_offset()
2806 shdr->sh_size = offset; in compute_common_symbol_offset()
2807 shdr->sh_addralign = maxalign; in compute_common_symbol_offset()
2904 newp->type = SCNINFO_SHDR (found->shdr).sh_type; in match_section()
2907 newp->flags = SCNINFO_SHDR (found->shdr).sh_flags & ~SHF_GROUP; in match_section()
2912 newp->entsize = SCNINFO_SHDR (found->shdr).sh_entsize; in match_section()
2934 if (queued->type != SCNINFO_SHDR (found->shdr).sh_type) in match_section()
2937 if (queued->flags != SCNINFO_SHDR (found->shdr).sh_flags) in match_section()
2942 SCNINFO_SHDR (found->shdr).sh_flags in match_section()
3045 si->shdr = (XElf_Shdr *) (si + 1); in sort_sections_lscript()
3052 compute_copy_reloc_offset (&SCNINFO_SHDR (si->shdr)); in sort_sections_lscript()
3075 si->shdr = (XElf_Shdr *) (si + 1); in sort_sections_lscript()
3082 compute_common_symbol_offset (&SCNINFO_SHDR (si->shdr)); in sort_sections_lscript()
3166 XElf_Shdr_vardef (shdr); in ld_generic_create_sections()
3211 xelf_getshdr (scn, shdr); in ld_generic_create_sections()
3212 if (shdr == NULL) in ld_generic_create_sections()
3232 SCNINFO_SHDR (runp->shdr).sh_name), in ld_generic_create_sections()
3281 xelf_getshdr (scn, shdr); in ld_generic_create_sections()
3282 if (shdr == NULL) in ld_generic_create_sections()
3292 shdr->sh_type = head->type; in ld_generic_create_sections()
3293 shdr->sh_flags = head->flags; in ld_generic_create_sections()
3294 shdr->sh_addralign = head->align; in ld_generic_create_sections()
3295 shdr->sh_entsize = head->entsize; in ld_generic_create_sections()
3296 assert (shdr->sh_entsize != 0 || (shdr->sh_flags & SHF_MERGE) == 0); in ld_generic_create_sections()
3297 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_sections()
3415 XElf_Shdr_vardef (shdr); in eval_expression()
3417 xelf_getshdr (elf_getscn (ld_state.outelf, 1), shdr); in eval_expression()
3418 assert (shdr != NULL); in eval_expression()
3420 val = shdr->sh_offset; in eval_expression()
3899 XElf_Shdr_vardef (shdr); in create_gnu_hash()
3907 xelf_getshdr (hashscn, shdr); in create_gnu_hash()
3909 if (shdr == NULL || hashdata == NULL) in create_gnu_hash()
3914 shdr->sh_link = ld_state.dynsymscnidx; in create_gnu_hash()
3915 (void) xelf_update_shdr (hashscn, shdr); in create_gnu_hash()
4046 XElf_Shdr_vardef (shdr); in create_hash()
4058 xelf_getshdr (hashscn, shdr); in create_hash()
4060 if (shdr == NULL || hashdata == NULL) in create_hash()
4065 shdr->sh_link = ld_state.dynsymscnidx; in create_hash()
4066 (void) xelf_update_shdr (hashscn, shdr); in create_hash()
4155 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in compute_hash_sum() local
4156 assert (shdr != NULL); in compute_hash_sum()
4158 if (SECTION_STRIP_P (shdr, elf_strptr (ld_state.outelf, shstrndx, in compute_hash_sum()
4159 shdr->sh_name), true)) in compute_hash_sum()
4164 if (shdr->sh_type == SHT_NOBITS) in compute_hash_sum()
4309 XElf_Shdr_vardef (shdr); in ld_generic_create_outfile()
4826 if (SCNINFO_SHDR (head->last->shdr).sh_entsize == 1 in ld_generic_create_outfile()
4896 else if (likely (SCNINFO_SHDR (head->last->shdr).sh_entsize in ld_generic_create_outfile()
4984 = ebl_gstrtabinit (SCNINFO_SHDR (head->last->shdr).sh_entsize, in ld_generic_create_outfile()
5087 assert (SCNINFO_SHDR (runp->shdr).sh_type == SHT_NOBITS); in ld_generic_create_outfile()
5092 outdata->d_size = SCNINFO_SHDR (runp->shdr).sh_size; in ld_generic_create_outfile()
5093 outdata->d_align = SCNINFO_SHDR (runp->shdr).sh_addralign; in ld_generic_create_outfile()
5587 xelf_getshdr (strscn, shdr); in ld_generic_create_outfile()
5588 if (data == NULL || shdr == NULL) in ld_generic_create_outfile()
5597 shdr->sh_type = SHT_STRTAB; in ld_generic_create_outfile()
5598 assert (shdr->sh_entsize == 0); in ld_generic_create_outfile()
5600 if (unlikely (xelf_update_shdr (strscn, shdr) == 0)) in ld_generic_create_outfile()
5932 xelf_getshdr (versymscn, shdr); in ld_generic_create_outfile()
5933 assert (shdr != NULL); in ld_generic_create_outfile()
5935 shdr->sh_link = ld_state.dynsymscnidx; in ld_generic_create_outfile()
5937 (void) xelf_update_shdr (versymscn, shdr); in ld_generic_create_outfile()
5979 xelf_getshdr (verneedscn, shdr); in ld_generic_create_outfile()
5981 if (shdr == NULL || verneeddata == NULL) in ld_generic_create_outfile()
6019 shdr->sh_link = ld_state.dynstrscnidx; in ld_generic_create_outfile()
6020 shdr->sh_info = ld_state.nverdeffile; in ld_generic_create_outfile()
6021 (void) xelf_update_shdr (verneedscn, shdr); in ld_generic_create_outfile()
6031 xelf_getshdr (dynsymscn, shdr); in ld_generic_create_outfile()
6033 shdr->sh_info = 1; in ld_generic_create_outfile()
6035 shdr->sh_link = ld_state.dynstrscnidx; in ld_generic_create_outfile()
6037 (void) xelf_update_shdr (dynsymscn, shdr); in ld_generic_create_outfile()
6048 xelf_getshdr (symscn, shdr); in ld_generic_create_outfile()
6049 if (shdr == NULL) in ld_generic_create_outfile()
6054 shdr->sh_type = SHT_SYMTAB; in ld_generic_create_outfile()
6055 shdr->sh_link = ld_state.strscnidx; in ld_generic_create_outfile()
6056 shdr->sh_info = nsym_local; in ld_generic_create_outfile()
6057 shdr->sh_entsize = xelf_fsize (ld_state.outelf, ELF_T_SYM, 1); in ld_generic_create_outfile()
6059 (void) xelf_update_shdr (symscn, shdr); in ld_generic_create_outfile()
6108 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6109 assert (shdr != NULL); in ld_generic_create_outfile()
6111 shdr->sh_name = ebl_strtaboffset (ld_state.allsections[cnt]->nameent); in ld_generic_create_outfile()
6113 if (xelf_update_shdr (scn, shdr) == 0) in ld_generic_create_outfile()
6123 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6125 assert (shdr != NULL); in ld_generic_create_outfile()
6127 shdr->sh_name = ebl_strtaboffset (symtab_ent); in ld_generic_create_outfile()
6129 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_outfile()
6135 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6137 assert (shdr != NULL); in ld_generic_create_outfile()
6139 shdr->sh_name = ebl_strtaboffset (xndx_ent); in ld_generic_create_outfile()
6141 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_outfile()
6147 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6149 assert (shdr != NULL); in ld_generic_create_outfile()
6151 shdr->sh_name = ebl_strtaboffset (strtab_ent); in ld_generic_create_outfile()
6153 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_outfile()
6157 xelf_getshdr (shstrtab_scn, shdr); in ld_generic_create_outfile()
6158 if (shdr == NULL) in ld_generic_create_outfile()
6163 shdr->sh_name = ebl_strtaboffset (shstrtab_ent); in ld_generic_create_outfile()
6164 shdr->sh_type = SHT_STRTAB; in ld_generic_create_outfile()
6166 if (unlikely (xelf_update_shdr (shstrtab_scn, shdr) == 0)) in ld_generic_create_outfile()
6177 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6178 assert (shdr != NULL); in ld_generic_create_outfile()
6180 shdr->sh_name = ebl_strtaboffset (groups->nameent); in ld_generic_create_outfile()
6181 shdr->sh_type = SHT_GROUP; in ld_generic_create_outfile()
6182 shdr->sh_flags = 0; in ld_generic_create_outfile()
6183 shdr->sh_link = ld_state.symscnidx; in ld_generic_create_outfile()
6184 shdr->sh_entsize = sizeof (Elf32_Word); in ld_generic_create_outfile()
6196 shdr->sh_info = ld_state.dblindirect[si]; in ld_generic_create_outfile()
6198 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_outfile()
6265 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6266 assert (shdr != NULL); in ld_generic_create_outfile()
6270 XElf_Addr addr = shdr->sh_offset; in ld_generic_create_outfile()
6324 shdr->sh_addr = addr; in ld_generic_create_outfile()
6327 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_outfile()
6333 if (unlikely (shdr->sh_flags & SHF_TLS)) in ld_generic_create_outfile()
6338 tls_offset = shdr->sh_offset; in ld_generic_create_outfile()
6340 if (tls_end < addr + shdr->sh_size) in ld_generic_create_outfile()
6341 tls_end = addr + shdr->sh_size; in ld_generic_create_outfile()
6342 if (shdr->sh_type != SHT_NOBITS) in ld_generic_create_outfile()
6343 tls_filesize += shdr->sh_size; in ld_generic_create_outfile()
6344 if (shdr->sh_addralign > tls_align) in ld_generic_create_outfile()
6345 tls_align = shdr->sh_addralign; in ld_generic_create_outfile()
6355 segment->addr = addr - shdr->sh_offset; in ld_generic_create_outfile()
6359 segment->offset = shdr->sh_offset; in ld_generic_create_outfile()
6364 segment->align = MAX (segment->align, shdr->sh_addralign); in ld_generic_create_outfile()
6371 if (shdr->sh_type != SHT_NOBITS in ld_generic_create_outfile()
6372 || (shdr->sh_flags & SHF_TLS) == 0) in ld_generic_create_outfile()
6374 memsize = (shdr->sh_offset - segment->offset in ld_generic_create_outfile()
6375 + shdr->sh_size); in ld_generic_create_outfile()
6376 if (nobits_size != 0 && shdr->sh_type != SHT_NOTE) in ld_generic_create_outfile()
6379 if (shdr->sh_type == SHT_NOBITS) in ld_generic_create_outfile()
6380 nobits_size += shdr->sh_size; in ld_generic_create_outfile()
6389 XElf_Off oldoff = shdr->sh_offset; in ld_generic_create_outfile()
6396 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6397 assert (shdr != NULL); in ld_generic_create_outfile()
6401 assert (oldoff <= shdr->sh_offset); in ld_generic_create_outfile()
6402 addr += shdr->sh_offset - oldoff; in ld_generic_create_outfile()
6586 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6587 assert (shdr != NULL); in ld_generic_create_outfile()
6589 shdr->sh_link = ld_state.dynsymscnidx; in ld_generic_create_outfile()
6591 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_outfile()
6604 ld_state.interpscnidx), shdr); in ld_generic_create_outfile()
6605 assert (shdr != NULL); in ld_generic_create_outfile()
6623 phdr->p_offset = shdr->sh_offset; in ld_generic_create_outfile()
6624 phdr->p_vaddr = shdr->sh_addr; in ld_generic_create_outfile()
6626 phdr->p_filesz = shdr->sh_size; in ld_generic_create_outfile()
6639 xelf_getshdr (outscn, shdr); in ld_generic_create_outfile()
6640 assert (shdr != NULL); in ld_generic_create_outfile()
6644 phdr->p_offset = shdr->sh_offset; in ld_generic_create_outfile()
6645 phdr->p_vaddr = shdr->sh_addr; in ld_generic_create_outfile()
6647 phdr->p_filesz = shdr->sh_size; in ld_generic_create_outfile()
6650 phdr->p_align = shdr->sh_addralign; in ld_generic_create_outfile()
6656 shdr->sh_link = ld_state.dynstrscnidx; in ld_generic_create_outfile()
6657 (void) xelf_update_shdr (outscn, shdr); in ld_generic_create_outfile()
6727 shdr); in ld_generic_create_outfile()
6728 assert (shdr != NULL); in ld_generic_create_outfile()
6730 shdr->sh_addr); in ld_generic_create_outfile()
6735 shdr); in ld_generic_create_outfile()
6736 assert (shdr != NULL); in ld_generic_create_outfile()
6738 shdr->sh_addr); in ld_generic_create_outfile()
6745 shdr); in ld_generic_create_outfile()
6746 assert (shdr != NULL); in ld_generic_create_outfile()
6748 shdr->sh_addr); in ld_generic_create_outfile()
6751 shdr->sh_size); in ld_generic_create_outfile()
6758 ld_state.gotpltscnidx), shdr); in ld_generic_create_outfile()
6759 assert (shdr != NULL); in ld_generic_create_outfile()
6763 DT_PLTGOT, shdr->sh_addr); in ld_generic_create_outfile()
6766 ld_state.pltrelscnidx), shdr); in ld_generic_create_outfile()
6767 assert (shdr != NULL); in ld_generic_create_outfile()
6769 DT_PLTRELSZ, shdr->sh_size); in ld_generic_create_outfile()
6772 DT_JMPREL, shdr->sh_addr); in ld_generic_create_outfile()
6782 ld_state.reldynscnidx), shdr); in ld_generic_create_outfile()
6783 assert (shdr != NULL); in ld_generic_create_outfile()
6785 rel, shdr->sh_addr); in ld_generic_create_outfile()
6792 rel + 1, shdr->sh_size); in ld_generic_create_outfile()
6808 ld_state.verneedscnidx), shdr); in ld_generic_create_outfile()
6809 assert (shdr != NULL); in ld_generic_create_outfile()
6811 DT_VERNEED, shdr->sh_addr); in ld_generic_create_outfile()
6820 ld_state.versymscnidx), shdr); in ld_generic_create_outfile()
6821 assert (shdr != NULL); in ld_generic_create_outfile()
6823 DT_VERSYM, shdr->sh_addr); in ld_generic_create_outfile()
6864 xelf_getshdr (outscn, shdr); in ld_generic_create_outfile()
6866 assert (shdr != NULL); in ld_generic_create_outfile()
6869 shdr->sh_link = ld_state.symscnidx; in ld_generic_create_outfile()
6874 shdr->sh_info = in ld_generic_create_outfile()
6875 rellist->scninfo->fileinfo->scninfo[SCNINFO_SHDR (rellist->scninfo->shdr).sh_info].outscnndx; in ld_generic_create_outfile()
6883 (void) xelf_update_shdr (outscn, shdr); in ld_generic_create_outfile()
6911 xelf_getshdr (scn, shdr); in ld_generic_create_outfile()
6912 if (unlikely (shdr == NULL)) in ld_generic_create_outfile()
6917 shdr->sh_link = shstrtab_ndx; in ld_generic_create_outfile()
6919 (void) xelf_update_shdr (scn, shdr); in ld_generic_create_outfile()