Home
last modified time | relevance | path

Searched refs:shdrstrndx (Results 1 - 6 of 6) sorted by relevance

/third_party/elfutils/tests/
H A Delfstrmerge.c152 newsecndx (size_t secndx, size_t shdrstrndx, size_t shdrnum, in newsecndx() argument
157 if (unlikely (secndx == 0 || secndx == shdrstrndx || secndx >= shdrnum)) in newsecndx()
174 return secndx < shdrstrndx ? secndx : secndx - 1; in newsecndx()
179 size_t ndx, size_t shdrstrndx, size_t shdrnum) in new_data_buf()
187 newscnbufs[newsecndx (ndx, shdrstrndx, shdrnum, fname, in new_data_buf()
221 size_t shdrstrndx; in main() local
222 if (elf_getshdrstrndx (elf, &shdrstrndx) != 0) in main()
225 Elf_Scn *shdrstrscn = elf_getscn (elf, shdrstrndx); in main()
267 if (shdrstrndx == strtabndx) in main()
315 if (shdr->sh_name != 0 && scnnum != shdrstrndx) in main()
178 new_data_buf(Elf_Data *d, const char *fname, size_t ndx, size_t shdrstrndx, size_t shdrnum) new_data_buf() argument
[all...]
H A Ddwelfgnucompressed.c58 size_t shdrstrndx; in main() local
59 if (elf_getshdrstrndx (elf, &shdrstrndx) == -1) in main()
79 const char *sname = elf_strptr (elf, shdrstrndx, shdr.sh_name); in main()
H A Delfgetchdr.c58 size_t shdrstrndx; in main() local
59 if (elf_getshdrstrndx (elf, &shdrstrndx) == -1) in main()
95 const char *sname = elf_strptr (elf, shdrstrndx, shdr.sh_name); in main()
H A Dfillfile.c288 size_t shdrstrndx; in check_elf() local
289 if (elf_getshdrstrndx (elf, &shdrstrndx) != 0) in check_elf()
294 printf ("shdrstrndx: %zd\n", shdrstrndx); in check_elf()
308 const char *sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in check_elf()
380 const char *sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in check_elf()
/third_party/elfutils/src/
H A Delfcompress.c344 size_t shdrstrndx; in process_file() local
345 if (elf_getshdrstrndx (elf, &shdrstrndx) != 0) in process_file()
440 const char *sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
497 if (shdr->sh_link == shdrstrndx) in process_file()
669 sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
676 /* strdup sname, the shdrstrndx section itself might be in process_file()
685 && (ndx == shdrstrndx in process_file()
729 if (ndx == shdrstrndx) in process_file()
794 if (ndx == shdrstrndx) in process_file()
857 if (! adjust_names || ndx != shdrstrndx) in process_file()
[all...]
H A Dstrip.c411 /* Updates the shdrstrndx for the given Elf by updating the Ehdr and
414 update_shdrstrndx (Elf *elf, size_t shdrstrndx) in update_shdrstrndx() argument
420 if (shdrstrndx < SHN_LORESERVE) in update_shdrstrndx()
421 ehdr.e_shstrndx = shdrstrndx; in update_shdrstrndx()
431 shdr0->sh_link = shdrstrndx; in update_shdrstrndx()
909 error (0, 0, "error updating shdrstrndx: %s", elf_errmsg (-1)); in handle_debug_relocs()
1701 size_t shdrstrndx; in handle_elf() local
1702 if (elf_getshdrstrndx (elf, &shdrstrndx) < 0) in handle_elf()
1704 error (0, 0, _("%s: error while getting shdrstrndx: %s"), in handle_elf()
1710 if (update_shdrstrndx (debugelf, shdrstrndx) ! in handle_elf()
[all...]

Completed in 6 milliseconds