Lines Matching refs:kfile
86 const char *kfile;
110 kfile = argv[0];
112 if ((kfd = open(kfile, O_RDWR, 0)) == -1)
113 err(1, "open %s", kfile);
116 if ((abfd = bfd_fdopenr(kfile, bfdname, kfd)) == NULL) {
126 errx(1, "no symbol table in %s", kfile);
129 errx(1, "could not find SYMTAB_SPACE in %s", kfile);
131 fprintf(stderr, "got SYMTAB_SPACE symbols from %s\n", kfile);
134 errx(1, "could not load symbol table from %s", kfile);
136 fprintf(stderr, "loaded symbol table from %s\n", kfile);
139 err(1, "fstat %s", kfile);
141 errx(1, "%s too big to map", kfile);
145 err(1, "mmap %s", kfile);
147 fprintf(stderr, "mapped %s\n", kfile);