/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_extended.c | 79 _libelf_setshstrndx(Elf *e, void *eh, int ec, size_t shstrndx) in _libelf_setshstrndx() argument 83 if (shstrndx >= SHN_LORESERVE) { in _libelf_setshstrndx() 90 scn->s_shdr.s_shdr32.sh_link = (Elf32_Word) shstrndx; in _libelf_setshstrndx() 92 scn->s_shdr.s_shdr64.sh_link = (Elf64_Word) shstrndx; in _libelf_setshstrndx() 96 shstrndx = SHN_XINDEX; in _libelf_setshstrndx() 100 ((Elf32_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx() 102 ((Elf64_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx()
|
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 220 size_t shstrndx, shnum; in ctf_fdopen() local 304 shstrndx = hdr.e64.e_shstrndx; in ctf_fdopen() 317 shstrndx = x32.sh_link; in ctf_fdopen() 327 shstrndx = x64.sh_link; in ctf_fdopen() 331 if (shstrndx >= shnum) in ctf_fdopen() 369 strs_mapsz = sp[shstrndx].sh_size + in ctf_fdopen() 370 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdopen() 373 fd, sp[shstrndx].sh_offset & _PAGEMASK); in ctf_fdopen() 376 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdopen() 394 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdopen() [all …]
|
/freebsd/usr.bin/elfdump/ |
H A D | elfdump.c | 494 uint64_t shstrndx; in elf_get_shstrndx() local 496 shstrndx = elf_get_quarter(e, e, E_SHSTRNDX); in elf_get_shstrndx() 497 if (shstrndx == SHN_XINDEX) in elf_get_shstrndx() 498 shstrndx = elf_get_word(e, (char *)sh, SH_LINK); in elf_get_shstrndx() 499 return shstrndx; in elf_get_shstrndx() 512 u_int64_t shstrndx; in main() local 618 shstrndx = elf_get_shstrndx(e, sh); in main() 625 shstrndx = 0; in main() 728 u_int64_t shstrndx; in elf_print_ehdr() local 761 shstrndx = elf_get_shstrndx(e, sh); in elf_print_ehdr() [all …]
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | archive.c | 254 size_t n, shstrndx; in extract_arsym() local 261 if (elf_getshstrndx(ecp->eout, &shstrndx) == 0) { in extract_arsym() 273 if ((name = elf_strptr(ecp->eout, shstrndx, shdr.sh_name)) == in extract_arsym()
|
/freebsd/contrib/elftoolchain/ar/ |
H A D | write.c | 820 size_t n, shstrndx; in create_symtab_entry() local 827 if (elf_getshstrndx(e, &shstrndx) == 0) { in create_symtab_entry() 841 if ((name = elf_strptr(e, shstrndx, shdr.sh_name)) == NULL) { in create_symtab_entry()
|
/freebsd/usr.bin/ar/ |
H A D | write.c | 738 size_t n, shstrndx; in create_symtab_entry() local 751 if (elf_getshstrndx(e, &shstrndx) == 0) { in create_symtab_entry() 766 if ((name = elf_strptr(e, shstrndx, shdr.sh_name)) == NULL) { in create_symtab_entry()
|
/freebsd/contrib/elftoolchain/addr2line/ |
H A D | addr2line.c | 847 size_t shstrndx; in find_section_base() local 856 if (!elf_getshstrndx(e, &shstrndx)) { in find_section_base() 869 if ((name = elf_strptr(e, shstrndx, sh.sh_name)) == NULL) in find_section_base()
|
/freebsd/contrib/elftoolchain/nm/ |
H A D | nm.c | 1200 size_t i, shstrndx, shnum, dynndx, strndx; in read_elf() local 1239 if (!elf_getshstrndx(elf, &shstrndx)) { in read_elf() 1279 shname = elf_strptr(elf, shstrndx, (size_t) shdr.sh_name); in read_elf()
|
/freebsd/contrib/elftoolchain/elfdump/ |
H A D | elfdump.c | 1112 size_t shstrndx, ndx; in load_sections() local 1125 if (!elf_getshstrndx(ed->elf, &shstrndx)) { in load_sections() 1140 if ((name = elf_strptr(ed->elf, shstrndx, sh.sh_name)) == NULL) { in load_sections()
|
/freebsd/contrib/elftoolchain/readelf/ |
H A D | readelf.c | 2263 size_t phnum, shnum, shstrndx; in dump_ehdr() local 2351 if (elf_getshstrndx(re->elf, &shstrndx)) in dump_ehdr() 2352 printf(" (%ju)", (uintmax_t)shstrndx); in dump_ehdr() 7229 size_t shstrndx, ndx; in load_sections() local 7243 if (!elf_getshstrndx(re->elf, &shstrndx)) { in load_sections() 7258 if ((name = elf_strptr(re->elf, shstrndx, sh.sh_name)) == NULL) { in load_sections()
|