Home
last modified time | relevance | path

Searched refs:sh_link (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/elfutils/libelf/
Delf_getshdrstrndx.c101 num = elf->state.elf32.scns.data[0].shdr.e32->sh_link; in elf_getshdrstrndx()
127 + offset))->sh_link; in elf_getshdrstrndx()
150 CONVERT (shdr_mem.sh_link); in elf_getshdrstrndx()
151 num = shdr_mem.sh_link; in elf_getshdrstrndx()
166 num = elf->state.elf64.scns.data[0].shdr.e64->sh_link; in elf_getshdrstrndx()
192 + offset))->sh_link; in elf_getshdrstrndx()
215 CONVERT (shdr_mem.sh_link); in elf_getshdrstrndx()
216 num = shdr_mem.sh_link; in elf_getshdrstrndx()
Delf32_getshdr.c144 CONVERT_TO (shdr[cnt].sh_link, notcvt[cnt].sh_link); in ElfW2()
154 && shdr[cnt].sh_link < shnum) in ElfW2()
155 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index in ElfW2()
193 CONVERT (shdr[cnt].sh_link); in ElfW2()
Dgelf_getshdr.c76 COPY (sh_link); in gelf_getshdr()
Dgelf_update_shdr.c82 COPY (sh_link); in gelf_update_shdr()
/third_party/elfutils/tests/
Dupdate4.c135 shdr->sh_link = 0; in main()
171 shdr->sh_link = 0; in main()
207 shdr->sh_link = 0; in main()
243 shdr->sh_link = 0; in main()
280 shdr->sh_link = SHN_UNDEF; in main()
Delfstrmerge.c260 size_t strtabndx = symtabshdr->sh_link; in main()
423 zshdr->sh_link = strtabndx; in main()
480 if (shdr->sh_link != 0) in main()
481 newshdr.sh_link = newsecndx (shdr->sh_link, shdrstrndx, shdrnum, in main()
484 newshdr.sh_link = 0; in main()
520 const bool update_name = shdr->sh_link == strtabndx; in main()
Daddsections.c59 zshdr->sh_link = ndx; in setshstrndx()
207 shdr->sh_link = SHN_UNDEF; in add_sections()
254 shdr->sh_link = SHN_UNDEF; in add_sections()
Dasm-tst3.c226 if (shdr->sh_link != 2) in main()
284 elf_strptr (elf, shdr->sh_link, in main()
Dalldts.c146 shdr->sh_link = SHN_UNDEF; in main()
201 shdr->sh_link = SHN_UNDEF; in main()
Dfillfile.c91 shdr->sh_link = SHN_UNDEF; in create_strtab()
152 shdr->sh_link = SHN_UNDEF; in add_data_section()
Dsectiondump.c109 shdr->sh_link, in handle_section()
/third_party/elfutils/src/
Delflint.c450 if (shdr != NULL && shdr->sh_link < shnum) in check_elf_header()
451 shstrndx = shdr->sh_link; in check_elf_header()
615 GElf_Shdr *strshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link), in check_symtab()
623 shdr->sh_link, section_name (ebl, shdr->sh_link), in check_symtab()
642 && xndxshdr->sh_link == (GElf_Word) idx) in check_symtab()
717 name = elf_strptr (ebl->elf, shdr->sh_link, sym->st_name); in check_symtab()
1412 && (name = elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name)) in check_one_reloc()
1509 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in check_rela()
1560 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in check_rel()
1659 strshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link), &strshdr_mem); in check_dynamic()
[all …]
Dstrip.c400 && xndxshdr->sh_link == scnndx) in get_xndxdata()
431 shdr0->sh_link = shdrstrndx; in update_shdrstrndx()
632 Elf64_Word symt = shdr->sh_link; in remove_debug_relocations()
1278 shdr_info[cnt].old_sh_link = shdr_info[cnt].shdr.sh_link; in handle_elf()
1296 elf_assert (shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx == 0); in handle_elf()
1297 shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx = cnt; in handle_elf()
1330 elf_assert (shdr_info[shdr_info[cnt].shdr.sh_link].version_idx == 0); in handle_elf()
1331 shdr_info[shdr_info[cnt].shdr.sh_link].version_idx = cnt; in handle_elf()
1539 shdr_info[cnt].shdr.sh_link, in handle_elf()
1560 if (shdr_info[shdr_info[cnt].shdr.sh_link].idx == 0) in handle_elf()
[all …]
Dfindtextrel.c393 symscn = elf_getscn (elf, shdr->sh_link); in process_file()
398 (size_t) shdr->sh_link, fname, elf_errmsg (-1)); in process_file()
552 const char *lowstr = elf_strptr (elf, shdr->sh_link, in check_rel()
577 lowstr, elf_strptr (elf, shdr->sh_link, in check_rel()
589 elf_strptr (elf, shdr->sh_link, sym->st_name)); in check_rel()
Dunstrip.c254 shdr0->sh_link = shstrndx; in copy_elf()
615 && shdr->sh_link == new_sh_link) in adjust_all_relocs()
1038 Elf_Scn *symscn = elf_getscn (elf, shdr->sh_link); in get_group_sig()
1060 const char *sig = elf_strptr (elf, symshdr->sh_link, sym->st_name); in get_group_sig()
1192 COPY (sh_link); in find_alloc_sections_prelink()
1475 unstripped_strndx = shdr->sh_link; in copy_elided_sections()
1606 && secndx == stripped_symtab->shdr.sh_link in copy_elided_sections()
1677 shdr_mem.sh_link = sec->shdr.sh_link; in copy_elided_sections()
1686 if (sec->shdr.sh_link != SHN_UNDEF) in copy_elided_sections()
1688 if (sec->shdr.sh_link > ndx_sec_num) in copy_elided_sections()
[all …]
Delfcmp.c324 || shdr1->sh_link != shdr2->sh_link in main()
373 const char *name1 = elf_strptr (elf1, shdr1->sh_link, in main()
375 const char *name2 = elf_strptr (elf2, shdr2->sh_link, in main()
764 || shdr->sh_link != scnndx) in search_for_copy_reloc()
Dobjdump.c508 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in show_relocs()
525 && xndxshdr->sh_link == elf_ndxscn (symscn)) in show_relocs()
535 symshdr->sh_link, shstrndx); in show_relocs()
538 symshdr->sh_link, shstrndx); in show_relocs()
Dnm.c1365 const char *symstr = elf_strptr (ebl->elf, shdr->sh_link, in show_symbols()
1478 sort_by_name_ndx = shdr->sh_link; in show_symbols()
1488 show_symbols_sysv (ebl, shdr->sh_link, fullname, sym_mem, nentries, in show_symbols()
1493 show_symbols_bsd (ebl->elf, ehdr, shdr->sh_link, prefix, fname, fullname, in show_symbols()
1500 show_symbols_posix (ebl->elf, ehdr, shdr->sh_link, prefix, fullname, in show_symbols()
1604 && xndxshdr->sh_link == scnndx) in handle_elf()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceELFSection.h76 void setLinkNum(Elf64_Word sh_link) { Header.sh_link = sh_link; } in setLinkNum() argument
323 Str.writeELFWord<IsELF64>(Header.sh_link); in writeHeader()
/third_party/libabigail/src/
Dabg-elf-helpers.cc497 symtab_section_index = section_header->sh_link; in find_hash_table_section_index()
702 strtab_section = elf_getscn(elf_handle, symtab_shdr->sh_link); in find_strtab_for_symtab_section()
754 size_t verdef_stridx = verdef_section_header->sh_link; in get_version_definition_for_versym()
819 size_t verneed_stridx = verneed_section_header->sh_link; in get_version_needed_for_versym()
1443 dynamic_section_header->sh_link), in lookup_data_tag_from_dynamic_segment()
1461 dynamic_section_header->sh_link, in lookup_data_tag_from_dynamic_segment()
1546 soname = elf_strptr (elf, shdr->sh_link, dyn->d_un.d_val); in get_soname_of_elf_file()
/third_party/elfutils/libasm/
Dasm_end.c235 shdr->sh_link = symscnndx; in binary_end()
276 shdr->sh_link = strscnndx; in binary_end()
368 shdr->sh_link = symscnndx; in binary_end()
450 shdr->sh_link = shstrscnndx; in binary_end()
/third_party/libbpf/src/
Dlinker.c373 sec->shdr->sh_link = 0; in init_output_elf()
411 sec->shdr->sh_link = linker->strtab_sec_idx; in init_output_elf()
774 if (!sec->shdr->sh_link || sec->shdr->sh_link >= obj->sec_cnt) { in linker_sanity_check_elf_symtab()
776 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_symtab()
779 link_sec = &obj->secs[sec->shdr->sh_link]; in linker_sanity_check_elf_symtab()
782 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_symtab()
849 if (sec->shdr->sh_link != obj->symtab_sec_idx) { in linker_sanity_check_elf_relos()
851 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_relos()
1020 shdr->sh_link = 0; in init_sec()
1214 int str_sec_idx = symtab->shdr->sh_link; in linker_append_elf_syms()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DELFObjectWriter.cpp989 uint64_t sh_link = 0; in writeSection() local
1002 sh_link = SymbolTableIndex; in writeSection()
1003 assert(sh_link && ".symtab not found"); in writeSection()
1010 sh_link = StringTableIndex; in writeSection()
1017 sh_link = SymbolTableIndex; in writeSection()
1021 sh_link = SymbolTableIndex; in writeSection()
1029 sh_link = SectionIndexMap.lookup(Sec); in writeSection()
1034 sh_link, sh_info, Section.getAlignment(), in writeSection()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DELFEmitter.cpp443 SHeader.sh_link = toSectionIndex(Sec->Link, Sec->Name); in initSectionHeaders()
601 SHeader.sh_link = toSectionIndex(RawSec->Link, RawSec->Name); in initSymtabSectionHeader()
612 SHeader.sh_link = Link; in initSymtabSectionHeader()
805 SHeader.sh_link = Link; in writeSectionContent()
882 SHeader.sh_link = Link; in writeSectionContent()
990 SHeader.sh_link = Link; in writeSectionContent()
1182 SHeader.sh_link = Link; in writeSectionContent()
1255 SHeader.sh_link = Link; in writeSectionContent()
/third_party/libunwind/include/win/
Dfreebsd-elf32.h84 Elf32_Word sh_link; /* Index of a related section. */ member

1234