Lines Matching refs:bootfile
81 const char *kernel, *bootfile;
92 fprintf(stderr, "usage: %s kernel bootfile\n", getprogname());
97 bootfile = argv[2];
102 if ((ofd = open(bootfile, O_RDWR)) < 0)
103 err(1, "%s", bootfile);
105 if (nlist(bootfile, nl) != 0)
106 errx(1, "Could not find symbols in %s", bootfile);
109 err(1, "fstat %s", bootfile);
111 errx(1, "%s too big to map", bootfile);
115 err(1, "mmap %s", bootfile);
116 printf("mapped %s\n", bootfile);
119 errx(1, "No ELF header in %s", bootfile);
123 errx(1, "Couldn't find offset for %s in %s", nl[i].n_name, bootfile);
125 printf("%s is at offset %#x in %s\n", nl[i].n_name, offsets[i], bootfile);
210 printf("unmapped %s\n", bootfile);