Lines Matching refs:elf
50 built_source_types(Elf *elf, char const *file)
55 if ((si = symit_new(elf, file)) == NULL)
87 read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg,
96 if ((ctfscnidx = findelfsecidx(elf, file, ".SUNW_ctf")) < 0) {
98 (built_source_types(elf, file) & SOURCE_C)) {
105 if ((ctfscn = elf_getscn(elf, ctfscnidx)) == NULL ||
110 if ((si = symit_new(elf, file)) == NULL) {
130 read_archive(int fd, Elf *elf, char *file, char *label, read_cb_f *func,
138 while ((melf = elf_begin(fd, cmd, elf)) != NULL) {
164 terminate("%s: Unknown elf kind %d\n",
188 Elf *elf;
198 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL)
201 switch (elf_kind(elf)) {
203 found = read_archive(fd, elf, file, label,
208 found = read_file(elf, file, label,
213 terminate("%s: Unknown elf kind %d\n", file, elf_kind(elf));
216 (void) elf_end(elf);
251 count_archive(int fd, Elf *elf, char *file)
258 while ((melf = elf_begin(fd, cmd, elf)) != NULL) {
282 Elf *elf;
296 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
304 switch (elf_kind(elf)) {
306 if ((rc = count_archive(fd, elf, file)) < 0)
319 (void) elf_end(elf);
343 symit_new(Elf *elf, const char *file)
349 if ((symtabidx = findelfsecidx(elf, file, ".symtab")) < 0)
354 if ((scn = elf_getscn(elf, symtabidx)) == NULL ||
359 if ((scn = elf_getscn(elf, si->si_shdr.sh_link)) == NULL ||