Lines Matching defs:elf

56 	 * Check the validity of the elf header information for compatibility
57 * with this machine and our own internal elf library.
84 ifl_setup(const char *name, Ehdr *ehdr, Elf *elf, Word flags, Ofl_desc *ofl,
105 ifl->ifl_elf = elf;
119 if ((scn = elf_getscn(elf, 0)) == NULL) {
215 * is presently recognized, and represented with the following (sys/elf.h):
2526 * Process an elf file. Each section is compared against the section state
2531 process_elf(Ifl_desc *ifl, Elf *elf, Ofl_desc *ofl)
2556 ld_sup_file(ofl, ifl->ifl_name, elf_kind(elf), ifl->ifl_flags, elf);
2559 if ((scn = elf_getscn(elf, (size_t)sndx)) == NULL) {
2569 if ((name = elf_strptr(elf, (size_t)sndx, (size_t)shdr->sh_name)) ==
2577 elf) == S_ERROR)
2584 if ((name = elf_strptr(elf, (size_t)sndx, (size_t)shdr->sh_name)) ==
2614 while (scn = elf_nextscn(elf, scn)) {
2631 elf) == S_ERROR)
2960 isp->is_indata, elf);
3048 * elf - Open ELF handle
3064 ld_process_ifl(const char *name, const char *soname, int fd, Elf *elf,
3087 switch (elf_kind(elf)) {
3121 * new elf descriptor. Note that a file
3127 (void) elf_end(elf);
3138 adp = ld_ar_setup(name, elf, ofl);
3144 ld_sup_file(ofl, name, ELF_K_AR, flags, elf);
3149 * read via the initial mmap(2) behind elf_begin(3elf), thus
3158 if (elf_cntl(elf, ELF_C_FDREAD) == -1) {
3170 * Obtain the elf header so that we can determine what type of
3171 * elf ELF_K_ELF file this is.
3173 if ((ehdr = elf_getehdr(elf)) == NULL) {
3174 int _class = gelf_getclass(elf);
3233 (void) elf_end(elf);
3270 ifl = ifl_setup(name, ehdr, elf, flags, ofl, rej);
3287 error = process_elf(ifl, elf, ofl);
3325 error = process_elf(ifl, elf, ofl);
3390 * Having successfully opened a file, set up the necessary elf structures to
3392 * from the elf initialization required to process a relocatable object from an
3399 Elf *elf;
3403 if ((elf = elf_begin(*fd, ELF_C_READ, NULL)) == NULL) {
3421 ld_sup_open(ofl, &npath, &nfile, fd, flags, &elf, NULL, 0,
3422 elf_kind(elf));
3424 if ((*fd == -1) || (elf == NULL))
3427 return (ld_process_ifl(npath, nfile, *fd, elf, flags, ofl, rej,
3432 * Having successfully mapped a file, set up the necessary elf structures to
3440 Elf *elf;
3444 if ((elf = elf_memory(addr, size)) == NULL) {
3449 open_ret = ld_process_ifl(path, file, 0, elf, 0, ofl, rej, &ifl);