Lines Matching refs:outfile
8 static void BITSFUNC(copy)(FILE *outfile, const unsigned char *data, size_t len) in BITSFUNC()
14 fprintf(outfile, "\n\t"); in BITSFUNC()
15 fprintf(outfile, "0x%02X, ", (int)(data)[i]); in BITSFUNC()
27 FILE *outfile, ELF(Shdr) *sec, const char *name) in BITSFUNC()
38 fprintf(outfile, "static const unsigned char %s[%zu] = {", name, len); in BITSFUNC()
39 BITSFUNC(copy)(outfile, data + offset, len); in BITSFUNC()
40 fprintf(outfile, "\n};\n\n"); in BITSFUNC()
45 FILE *outfile, const char *image_name) in BITSFUNC()
174 fwrite(stripped_addr, stripped_len, 1, outfile); in BITSFUNC()
180 fprintf(outfile, "/* AUTOMATICALLY GENERATED -- DO NOT EDIT */\n\n"); in BITSFUNC()
181 fprintf(outfile, "#include <linux/linkage.h>\n"); in BITSFUNC()
182 fprintf(outfile, "#include <asm/page_types.h>\n"); in BITSFUNC()
183 fprintf(outfile, "#include <asm/vdso.h>\n"); in BITSFUNC()
184 fprintf(outfile, "\n"); in BITSFUNC()
185 fprintf(outfile, in BITSFUNC()
190 fprintf(outfile, "\n\t"); in BITSFUNC()
191 fprintf(outfile, "0x%02X, ", in BITSFUNC()
194 fprintf(outfile, "\n};\n\n"); in BITSFUNC()
196 BITSFUNC(extract)(raw_addr, raw_len, outfile, in BITSFUNC()
199 fprintf(outfile, "const struct vdso_image %s = {\n", image_name); in BITSFUNC()
200 fprintf(outfile, "\t.data = raw_data,\n"); in BITSFUNC()
201 fprintf(outfile, "\t.size = %lu,\n", mapping_size); in BITSFUNC()
203 fprintf(outfile, "\t.alt = %lu,\n", in BITSFUNC()
205 fprintf(outfile, "\t.alt_len = %lu,\n", in BITSFUNC()
209 fprintf(outfile, "\t.extable_base = %lu,\n", in BITSFUNC()
211 fprintf(outfile, "\t.extable_len = %lu,\n", in BITSFUNC()
213 fprintf(outfile, "\t.extable = extable,\n"); in BITSFUNC()
218 fprintf(outfile, "\t.sym_%s = %" PRIi64 ",\n", in BITSFUNC()
221 fprintf(outfile, "};\n"); in BITSFUNC()