Lines Matching refs:file

4  * The contents of this file are subject to the terms of the
6 * You may not use this file except in compliance with the License.
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
50 built_source_types(Elf *elf, char const *file)
55 if ((si = symit_new(elf, file)) == NULL)
86 read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg,
95 if ((ctfscnidx = findelfsecidx(elf, file, ".SUNW_ctf")) < 0) {
97 (built_source_types(elf, file) & SOURCE_C)) {
98 terminate("Input file %s was partially built from "
99 "C sources, but no CTF data was present\n", file);
106 elfterminate(file, "Cannot read CTF section");
109 if ((si = symit_new(elf, file)) == NULL) {
110 warning("%s has no symbol table - skipping", file);
114 td = ctf_load(file, ctfdata->d_buf, ctfdata->d_size, si, label);
120 if (func(td, file, arg) < 0)
129 read_archive(int fd, Elf *elf, char *file, char *label, read_cb_f *func,
141 elfterminate(file, "Can't get archive header for "
147 size_t memlen = strlen(file) + 1 +
151 snprintf(memname, memlen, "%s(%s)", file, arh->ar_name);
184 read_ctf_common(char *file, char *label, read_cb_f *func, void *arg,
191 debug(3, "Reading %s (label %s)\n", file, (label ? label : "NONE"));
195 if ((fd = open(file, O_RDONLY)) < 0)
196 terminate("%s: Cannot open for reading", file);
198 elfterminate(file, "Cannot read");
202 found = read_archive(fd, elf, file, label,
207 found = read_file(elf, file, label,
212 terminate("%s: Unknown elf kind %d\n", file, elf_kind(elf));
250 count_archive(int fd, Elf *elf, char *file)
260 file);
287 char *file = files[i];
289 if ((fd = open(file, O_RDONLY)) < 0) {
290 warning("Can't read input file %s", file);
296 warning("Can't open input file %s: %s\n", file,
305 if ((rc = count_archive(fd, elf, file)) < 0)
314 warning("Input file %s is corrupt\n", file);
342 symit_new(Elf *elf, const char *file)
348 if ((symtabidx = findelfsecidx(elf, file, ".symtab")) < 0)
356 elfterminate(file, "Cannot read .symtab");
360 elfterminate(file, "Cannot read strings for .symtab");