Lines Matching refs:scn
116 elf_loaddata(Elf_Scn *scn, GElf_Shdr *shdr) in elf_loaddata() argument
118 Elf_Data *data = elf_getdata(scn, NULL); in elf_loaddata()
119 if (data == NULL || elf_getdata(scn, data) != NULL in elf_loaddata()
132 Elf_Scn *scn; in elf_get_section_if() local
135 scn = elf_getscn(lte->elf, i); in elf_get_section_if()
136 if (scn == NULL || gelf_getshdr(scn, &shdr) == NULL) { in elf_get_section_if()
140 if (predicate(scn, &shdr, data)) { in elf_get_section_if()
141 *tgt_sec = scn; in elf_get_section_if()
152 inside_p(Elf_Scn *scn, GElf_Shdr *shdr, void *data) in inside_p() argument
168 type_p(Elf_Scn *scn, GElf_Shdr *shdr, void *data) in type_p() argument
188 name_p(Elf_Scn *scn, GElf_Shdr *shdr, void *d) in name_p() argument
431 Elf_Scn *scn, GElf_Shdr *shdr, const char *name, in read_symbol_table() argument
434 *datap = elf_getdata(scn, NULL); in read_symbol_table()
436 if ((*datap == NULL || elf_getdata(scn, *datap) != NULL) in read_symbol_table()
444 scn = elf_getscn(lte->elf, shdr->sh_link); in read_symbol_table()
446 if (scn == NULL || gelf_getshdr(scn, &shdr2) == NULL) { in read_symbol_table()
453 Elf_Data *data = elf_getdata(scn, NULL); in read_symbol_table()
454 if (data == NULL || elf_getdata(scn, data) != NULL in read_symbol_table()
497 elf_read_relocs(struct ltelf *lte, Elf_Scn *scn, GElf_Shdr *shdr, in elf_read_relocs() argument
503 Elf_Data *relplt = elf_loaddata(scn, shdr); in elf_read_relocs()
540 Elf_Scn *scn; in elf_load_dynamic_entry() local
542 if (elf_get_section_type(lte, SHT_DYNAMIC, &scn, &shdr) < 0 in elf_load_dynamic_entry()
543 || scn == NULL) { in elf_load_dynamic_entry()
550 Elf_Data *data = elf_loaddata(scn, &shdr); in elf_load_dynamic_entry()
581 Elf_Scn *scn; in ltelf_read_elf() local
585 scn = elf_getscn(lte->elf, i); in ltelf_read_elf()
586 if (scn == NULL || gelf_getshdr(scn, &shdr) == NULL) { in ltelf_read_elf()
601 scn, &shdr, name, <e->symtab, in ltelf_read_elf()
606 scn, &shdr, name, <e->dynsym, in ltelf_read_elf()
616 data = elf_getdata(scn, NULL); in ltelf_read_elf()
617 if (data == NULL || elf_getdata(scn, data) != NULL) { in ltelf_read_elf()
645 lte->plt_data = elf_loaddata(scn, &shdr); in ltelf_read_elf()
655 lte->opd = elf_rawdata(scn, NULL); in ltelf_read_elf()
673 Elf_Scn *scn; in ltelf_read_elf() local
676 scn = elf_getscn(lte->elf, i); in ltelf_read_elf()
677 if (scn == NULL || gelf_getshdr(scn, &shdr) == NULL) { in ltelf_read_elf()
685 if (elf_read_relocs(lte, scn, &shdr, in ltelf_read_elf()
925 Elf_Scn *scn = elf_getscn(lte->elf, i); in populate_this_symtab() local
927 if (scn == NULL || gelf_getshdr(scn, &shdr) == NULL) in populate_this_symtab()