From 210c52ac91caa53272dd12ea1266d408593f055a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 1 Jun 1994 18:28:26 +0000 Subject: * ldlang.h (lang_input_statement_type): Remove fields subfiles, total_size, superfile and chain. * ldfile.c (open_a): Don't clear search_dirs_flag. (ldfile_open_file): Don't try to open superfile. Assert that file has not already been opened. * ldlang.c (new_afile): Don't initialize superfile. * ldmain.c (add_archive_element): Don't initialize subfiles or chain or superfile. Initialize search_dirs_flag to false. --- ld/ldfile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ld/ldfile.c') diff --git a/ld/ldfile.c b/ld/ldfile.c index 43e9575..34b142c 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -145,7 +145,6 @@ open_a(arch, entry, lib, suffix) if (desc) { entry->filename = string; - entry->search_dirs_flag = false; entry->the_bfd = desc; return desc; } @@ -162,8 +161,7 @@ void ldfile_open_file (entry) lang_input_statement_type *entry; { - if (entry->superfile != NULL) - ldfile_open_file (entry->superfile); + ASSERT (entry->the_bfd == NULL); if (! entry->search_dirs_flag) entry->the_bfd = cached_bfd_openr (entry->filename, entry); -- cgit v1.1