Lines Matching defs:file
3 This file is part of elfutils.
6 This file is free software; you can redistribute it and/or modify
64 { "match-file-names", 'f', NULL, 0,
65 N_("Match MODULE against file names, not module names"), 2 },
72 { "module-names", 'm', NULL, 0, N_("Use module rather than file names"), 0 },
79 N_("Only list module and file names, build IDs"), 0 },
193 argp_error (state, _("exactly two file arguments are required"));
361 file from their original size. Older versions of strip do not
362 adjust the sh_size field in the debuginfo file's SHT_NOBITS
599 /* Adjust all the relocation sections in the file. */
621 /* The original file probably had section symbols for all of its
1085 and the debuginfo file's section headers no longer match up.
1409 more sections in stripped file than debug file -- arguments reversed?"));
1412 error_exit (0, _("no sections in stripped file"));
1416 ELF file, to check if any existing section offsets are OK. */
1424 /* Cache the stripped file's section details. */
1577 /* Make sure each main file section has a place to go. */
1666 /* In an ET_REL file under --relocate, the sh_addr of SHF_ALLOC
1668 touched the shdrs of whichever file had the symtab. sh_addr
1715 /* Preserve the file layout of the allocated sections. */
1806 /* Merge the stripped file's symbol table into the unstripped one. */
2035 /* We need to preserve the layout of the stripped file so the
2061 modifying the existing file in place, we might overwrite
2062 this part of the file before we get to handling the section. */
2111 /* Copy each program header from the stripped file. */
2122 /* Finally, write out the file. */
2124 _("cannot write output file: %s"));
2150 /* Determine the address bias between the debuginfo file and the main
2151 file, which may have been modified by prelinking. */
2184 /* Modify the unstripped file in place. */
2191 /* Copy the unstripped file and then modify it. */
2202 /* Actually, we are just copying out the main file as it is. */
2207 _("cannot write output file: %s"));
2221 open_file (const char *file, bool writable)
2223 int fd = open (file, writable ? O_RDWR : O_RDONLY);
2225 error_exit (errno, _("cannot open '%s'"), file);
2304 const char *file;
2306 NULL, NULL, &file, NULL);
2307 if (file == NULL)
2309 _("cannot find stripped file for module '%s': %s"),
2313 _("cannot open stripped file '%s' for module '%s': %s"),
2314 modname, file, dwfl_errmsg (-1));
2323 const char *file;
2325 NULL, NULL, NULL, &file);
2326 if (file == NULL)
2328 _("cannot find debug file for module '%s': %s"),
2332 _("cannot open debug file '%s' for module '%s': %s"),
2333 modname, file, dwfl_errmsg (-1));
2342 const char *file;
2344 NULL, NULL, &file, NULL);
2345 error_exit (0, _("module '%s' file '%s' is not stripped"),
2346 modname, file);
2391 /* Make sure we've searched for the ELF file. */
2396 const char *file;
2398 NULL, NULL, &file, NULL);
2400 if (file == NULL && ignore)
2403 char *output_file = xasprintf ("%s/%s", output_dir, modnames ? name : file);
2419 const char *file;
2424 NULL, NULL, &file, &debug);
2425 if (file != NULL && debug != NULL && (debug == file || !strcmp (debug, file)))
2446 file ?: have_elf ? "." : "-",
2477 /* Make sure we've searched for the ELF file. */
2481 const char *file;
2483 NULL, NULL, &file, NULL);
2484 if (check == NULL || strcmp (check, name) != 0 || file == NULL)
2487 name = file;
2566 MODULE arguments give file name patterns matching modules to process.\n\
2567 With -f these match the file name of the main (stripped) file \
2574 name of the main file complete with directory underneath OUTPUT-DIRECTORY.\n\
2582 FILE is the file name found for the module, or - if none was found, \
2583 or . if an ELF image is available but not from any named file. \
2584 DEBUGFILE is the separate debuginfo file name, \
2607 char *file = xasprintf ("%s/%s", info.output_dir, info.args[0]);
2608 handle_explicit_files (file, true, info.force,
2610 free (file);