Lines Matching refs:FILE
3 This file is part of Red Hat elfutils.
66 static void print_version (FILE *stream, struct argp_state *state);
67 void (*argp_program_version_hook) (FILE *, struct argp_state *)
77 { "match-file-names", 'f', NULL, 0,
78 N_("Match MODULE against file names, not module names"), 2 },
82 { "output", 'o', "FILE", 0, N_("Place output into FILE"), 0 },
85 { "module-names", 'm', NULL, 0, N_("Use module rather than file names"), 0 },
92 N_("Only list module and file names, build IDs"), 0 },
199 argp_error (state, _("exactly two file arguments are required"));
231 print_version (FILE *stream, struct argp_state *state __attribute__ ((unused)))
318 file from their original size. Older versions of strip do not
319 adjust the sh_size field in the debuginfo file's SHT_NOBITS
525 /* Adjust all the relocation sections in the file. */
543 /* The original file probably had section symbols for all of its
919 and the debuginfo file's section headers no longer match up.
1239 /* Cache the stripped file's section details. */
1394 /* Make sure each main file section has a place to go. */
1484 /* In an ET_REL file under --relocate, the sh_addr of SHF_ALLOC
1486 touched the shdrs of whichever file had the symtab. sh_addr
1513 /* Preserve the file layout of the allocated sections. */
1583 /* Merge the stripped file's symbol table into the unstripped one. */
1758 /* We need to preserve the layout of the stripped file so the
1821 /* Copy each program header from the stripped file. */
1832 /* Finally, write out the file. */
1834 _("cannot write output file: %s"));
1857 /* Determine the address bias between the debuginfo file and the main
1858 file, which may have been modified by prelinking. */
1891 /* Modify the unstripped file in place. */
1898 /* Copy the unstripped file and then modify it. */
1908 /* Actually, we are just copying out the main file as it is. */
1913 _("cannot write output file: %s"));
1927 open_file (const char *file, bool writable)
1929 int fd = open64 (file, writable ? O_RDWR : O_RDONLY);
1931 error (EXIT_FAILURE, errno, _("cannot open '%s'"), file);
1988 const char *file;
1990 NULL, NULL, &file, NULL);
1991 if (file == NULL)
1993 _("cannot find stripped file for module '%s': %s"),
1997 _("cannot open stripped file '%s' for module '%s': %s"),
1998 modname, file, dwfl_errmsg (-1));
2007 const char *file;
2009 NULL, NULL, NULL, &file);
2010 if (file == NULL)
2012 _("cannot find debug file for module '%s': %s"),
2016 _("cannot open debug file '%s' for module '%s': %s"),
2017 modname, file, dwfl_errmsg (-1));
2026 const char *file;
2028 NULL, NULL, &file, NULL);
2029 error (EXIT_FAILURE, 0, _("module '%s' file '%s' is not stripped"),
2030 modname, file);
2075 /* Make sure we've searched for the ELF file. */
2080 const char *file;
2082 NULL, NULL, &file, NULL);
2084 if (file == NULL && ignore)
2088 if (asprintf (&output_file, "%s/%s", output_dir, modnames ? name : file) < 0)
2103 const char *file;
2108 NULL, NULL, &file, &debug);
2109 if (file != NULL && debug != NULL && (debug == file || !strcmp (debug, file)))
2130 file ?: have_elf ? "." : "-",
2161 /* Make sure we've searched for the ELF file. */
2165 const char *file;
2167 NULL, NULL, &file, NULL);
2169 if (file == NULL)
2172 name = file;
2250 .args_doc = N_("STRIPPED-FILE DEBUG-FILE\n[MODULE...]"),
2253 The first form puts the result in DEBUG-FILE if -o was not given.\n\
2255 MODULE arguments give file name patterns matching modules to process.\n\
2256 With -f these match the file name of the main (stripped) file \
2263 name of the main file complete with directory underneath OUTPUT-DIRECTORY.\n\
2266 \n\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n\
2271 FILE is the file name found for the module, or - if none was found, \
2272 or . if an ELF image is available but not from any named file. \
2273 DEBUGFILE is the separate debuginfo file name, \
2274 or - if no debuginfo was found, or . if FILE contains the debug information.\
2296 char *file;
2297 if (asprintf (&file, "%s/%s", info.output_dir, info.args[0]) < 0)
2299 handle_explicit_files (file, true, info.args[0], info.args[1]);
2300 free (file);