/external/elfutils/libelf/ |
D | elf_getshdrstrndx.c | 103 num = elf->state.elf32.scns.data[0].shdr.e32->sh_link; in elf_getshdrstrndx() 129 + offset))->sh_link; in elf_getshdrstrndx() 152 CONVERT (shdr_mem.sh_link); in elf_getshdrstrndx() 153 num = shdr_mem.sh_link; in elf_getshdrstrndx() 168 num = elf->state.elf64.scns.data[0].shdr.e64->sh_link; in elf_getshdrstrndx() 194 + offset))->sh_link; in elf_getshdrstrndx() 217 CONVERT (shdr_mem.sh_link); in elf_getshdrstrndx() 218 num = shdr_mem.sh_link; in elf_getshdrstrndx()
|
D | elf32_getshdr.c | 146 CONVERT_TO (shdr[cnt].sh_link, notcvt[cnt].sh_link); in ElfW2() 156 && shdr[cnt].sh_link < shnum) in ElfW2() 157 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index in ElfW2() 195 CONVERT (shdr[cnt].sh_link); in ElfW2()
|
/external/elfutils/tests/ |
D | update4.c | 135 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()
|
D | elfstrmerge.c | 219 size_t strtabndx = symtabshdr->sh_link; in main() 405 zshdr->sh_link = strtabndx; in main() 462 if (shdr->sh_link != 0) in main() 463 newshdr.sh_link = newsecndx (shdr->sh_link, "shdr", ndx, "sh_link", 0); in main() 465 newshdr.sh_link = 0; in main() 510 const bool update_name = shdr->sh_link == strtabndx; in main()
|
D | addsections.c | 59 zshdr->sh_link = ndx; in setshstrndx() 207 shdr->sh_link = SHN_UNDEF; in add_sections() 254 shdr->sh_link = SHN_UNDEF; in add_sections()
|
D | asm-tst3.c | 226 if (shdr->sh_link != 2) in main() 284 elf_strptr (elf, shdr->sh_link, in main()
|
D | alldts.c | 145 shdr->sh_link = SHN_UNDEF; in main() 200 shdr->sh_link = SHN_UNDEF; in main()
|
/external/google-breakpad/src/common/linux/ |
D | synth_elf_unittest.cc | 248 EXPECT_EQ(0U, shdr[0].sh_link); in TYPED_TEST() 259 EXPECT_EQ(0U, shdr[1].sh_link); in TYPED_TEST() 323 EXPECT_EQ(0U, shdr[0].sh_link); in TYPED_TEST() 334 EXPECT_EQ(0U, shdr[1].sh_link); in TYPED_TEST() 345 EXPECT_EQ(0U, shdr[2].sh_link); in TYPED_TEST() 356 EXPECT_EQ(0U, shdr[3].sh_link); in TYPED_TEST()
|
/external/elfutils/src/ |
D | elflint.c | 451 if (shdr != NULL && shdr->sh_link < shnum) in check_elf_header() 452 shstrndx = shdr->sh_link; in check_elf_header() 616 GElf_Shdr *strshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link), in check_symtab() 624 shdr->sh_link, section_name (ebl, shdr->sh_link), in check_symtab() 643 && xndxshdr->sh_link == (GElf_Word) idx) in check_symtab() 718 name = elf_strptr (ebl->elf, shdr->sh_link, sym->st_name); in check_symtab() 1413 && (name = elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name)) in check_one_reloc() 1510 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in check_rela() 1561 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in check_rel() 1660 strshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link), &strshdr_mem); in check_dynamic() [all …]
|
D | strip.c | 403 && xndxshdr->sh_link == scnndx) in get_xndxdata() 434 shdr0->sh_link = shdrstrndx; in update_shdrstrndx() 633 Elf64_Word symt = shdr->sh_link; in remove_debug_relocations() 1270 shdr_info[cnt].old_sh_link = shdr_info[cnt].shdr.sh_link; in handle_elf() 1288 elf_assert (shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx == 0); in handle_elf() 1289 shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx = cnt; in handle_elf() 1322 elf_assert (shdr_info[shdr_info[cnt].shdr.sh_link].version_idx == 0); in handle_elf() 1323 shdr_info[shdr_info[cnt].shdr.sh_link].version_idx = cnt; in handle_elf() 1531 shdr_info[cnt].shdr.sh_link, in handle_elf() 1552 if (shdr_info[shdr_info[cnt].shdr.sh_link].idx == 0) in handle_elf() [all …]
|
D | findtextrel.c | 403 symscn = elf_getscn (elf, shdr->sh_link); in process_file() 408 (size_t) shdr->sh_link, fname, elf_errmsg (-1)); in process_file() 562 const char *lowstr = elf_strptr (elf, shdr->sh_link, in check_rel() 587 lowstr, elf_strptr (elf, shdr->sh_link, in check_rel() 599 elf_strptr (elf, shdr->sh_link, sym->st_name)); in check_rel()
|
D | unstrip.c | 255 shdr0->sh_link = shstrndx; in copy_elf() 613 && shdr->sh_link == new_sh_link) in adjust_all_relocs() 1036 Elf_Scn *symscn = elf_getscn (elf, shdr->sh_link); in get_group_sig() 1058 const char *sig = elf_strptr (elf, symshdr->sh_link, sym->st_name); in get_group_sig() 1176 COPY (sh_link); in find_alloc_sections_prelink() 1492 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 …]
|
D | elfcmp.c | 325 || shdr1->sh_link != shdr2->sh_link in main() 374 const char *name1 = elf_strptr (elf1, shdr1->sh_link, in main() 376 const char *name2 = elf_strptr (elf2, shdr2->sh_link, in main() 765 || shdr->sh_link != scnndx) in search_for_copy_reloc()
|
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/ |
D | linked-section.test | 1 ## This test checks that if a section has a sh_link field, and one or more 3 ## llvm-objcopy correctly updates the sh_link field.
|
D | dynrelocsec-remove-shlink-reference.test | 4 ## relocation section .rela.dyn still references it via sh_link field. 12 ## Check we zero out sh_link field and allow producing output with the --allow-broken-links switch.
|
/external/llvm-project/llvm/test/CodeGen/X86/ |
D | elf-associated-discarded.ll | 1 ;; Test that we keep SHF_LINK_ORDER but reset sh_link to 0 if the associated 12 ;; No 'L' (SHF_LINK_ORDER). sh_link=0.
|
/external/llvm-project/lld/test/ELF/ |
D | gc-sections-linkorder-err.s | 9 # CHECK-NEXT: error: {{.*}}.o:(.bar): sh_link points to discarded section {{.*}}.o:(.foo0) 10 # CHECK-NEXT: error: {{.*}}.o:(.baz): sh_link points to discarded section {{.*}}.o:(.foo0)
|
D | linkorder-mixed.s | 2 ## Test that we allow SHF_LINK_ORDER sections with sh_link=0. 3 ## SHF_LINK_ORDER sections with sh_link!=0 are ordered before others.
|
D | linkorder-forward-ref.test | 6 ## Test that we accept forward sh_link references.
|
/external/swiftshader/third_party/subzero/src/ |
D | IceELFSection.h | 76 void setLinkNum(Elf64_Word sh_link) { Header.sh_link = sh_link; } in setLinkNum() argument 323 Str.writeELFWord<IsELF64>(Header.sh_link); in writeHeader()
|
/external/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 215 ErrorOr<const Elf_Shdr *> StrTabSec = Obj.getSection(SymTab->sh_link); in dumpRelocation() 244 if (Shdr->sh_link != ELF::SHN_UNDEF) { in dumpCommonSection() 245 ErrorOr<const Elf_Shdr *> LinkSection = Obj.getSection(Shdr->sh_link); in dumpCommonSection() 285 ErrorOr<const Elf_Shdr *> SymTabOrErr = Obj.getSection(Shdr->sh_link); in dumpRelSection() 309 ErrorOr<const Elf_Shdr *> SymTabOrErr = Obj.getSection(Shdr->sh_link); in dumpRelaSection() 362 ErrorOr<const Elf_Shdr *> SymtabOrErr = Obj.getSection(Shdr->sh_link); in dumpGroup()
|
/external/elfutils/libasm/ |
D | asm_end.c | 238 shdr->sh_link = symscnndx; in binary_end() 279 shdr->sh_link = strscnndx; in binary_end() 371 shdr->sh_link = symscnndx; in binary_end() 453 shdr->sh_link = shstrscnndx; in binary_end()
|
/external/llvm-project/lld/test/ELF/invalid/ |
D | linkorder-invalid-sec.test | 4 # CHECK: invalid sh_link index: 12345
|
/external/llvm/lib/MC/ |
D | ELFObjectWriter.cpp | 1137 uint64_t sh_link = 0; in writeSection() local 1150 sh_link = SymbolTableIndex; in writeSection() 1151 assert(sh_link && ".symtab not found"); in writeSection() 1159 sh_link = StringTableIndex; in writeSection() 1164 sh_link = SymbolTableIndex; in writeSection() 1168 sh_link = SymbolTableIndex; in writeSection() 1175 sh_link = SectionIndexMap.lookup(Section.getAssociatedSection()); in writeSection() 1179 sh_link, sh_info, Section.getAlignment(), in writeSection()
|
/external/llvm-project/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 320 const Elf_Shdr *LinkedSymTab = cantFail(Obj.getSection(Sec.sh_link)); in dump() 326 Twine(Sec.sh_link)); in dump() 713 auto StrTabSec = Obj.getSection(SymTab->sh_link); in dumpRelocation() 772 if (Shdr->sh_link != ELF::SHN_UNDEF) { in dumpCommonSection() 773 auto LinkSection = Obj.getSection(Shdr->sh_link); in dumpCommonSection() 909 Expected<StringRef> SymbolName = getSymbolName(Shdr->sh_link, SymNdx); in dumpAddrsigSection() 1021 Expected<StringRef> From = getSymbolName(Shdr->sh_link, FromSymIndex); in dumpCallGraphProfileSection() 1022 Expected<StringRef> To = getSymbolName(Shdr->sh_link, ToSymIndex); in dumpCallGraphProfileSection() 1069 auto SymTabOrErr = Obj.getSection(Shdr->sh_link); in dumpRelocSection() 1318 auto StringTableShdrOrErr = Obj.getSection(Shdr->sh_link); in dumpVerdefSection() [all …]
|