/* Linker file opening and searching.
- Copyright (C) 1991-2023 Free Software Foundation, Inc.
+ Copyright (C) 1991-2024 Free Software Foundation, Inc.
This file is part of the GNU Binutils.
continue;
}
- char * rename = p;
+ char * renamed = p;
/* Advance past the rename entry. */
while (*p && *p != '=' && *p != ' ' && *p != '\t' && *p != '\f'
/* And terminate it. */
*p = '\0';
- ldfile_add_remap (pattern, rename);
+ ldfile_add_remap (pattern, renamed);
}
while (! feof (f));
}
/* PR 30568: Do not track lto generated temporary object files. */
+#if BFD_SUPPORTS_PLUGINS
if (!entry->flags.lto_output)
+#endif
track_dependency_files (attempt);
/* Linker needs to decompress sections. */
result = fopen (name, "r");
if (result != NULL)
- *sysrooted = is_sysrooted_pathname (name);
+ {
+ *sysrooted = is_sysrooted_pathname (name);
+ track_dependency_files (name);
+ }
if (verbose)
{
return result;
}
-enum script_open_style {
- script_nonT,
- script_T,
- script_defaultT
-};
-
-struct script_name_list
-{
- struct script_name_list *next;
- enum script_open_style open_how;
- char name[1];
-};
-
+struct script_name_list *processed_scripts = NULL;
/* Open command file NAME. */
static void
{
FILE *ldlex_input_stack;
bool sysrooted;
- static struct script_name_list *processed_scripts = NULL;
struct script_name_list *script;
size_t len;
return;
}
- track_dependency_files (name);
-
lex_push_file (ldlex_input_stack, name, sysrooted);
lineno = 1;