Lines Matching refs:entry
126 lang_input_statement_type *entry)
128 entry->the_bfd = bfd_openr (attempt, entry->target);
132 if (entry->the_bfd == NULL)
138 if (entry->the_bfd == NULL)
141 einfo (_("%F%P: invalid BFD target `%s'\n"), entry->target);
148 entry->the_bfd->flags |= BFD_DECOMPRESS;
151 entry->the_bfd->is_linker_input = 1;
154 if (entry->flags.lto_output)
155 entry->the_bfd->lto_output = 1;
169 if (entry->flags.search_dirs || !entry->flags.dynamic)
173 if (bfd_check_format (entry->the_bfd, bfd_archive))
174 check = bfd_openr_next_archived_file (entry->the_bfd, NULL);
176 check = entry->the_bfd;
182 if (check == entry->the_bfd
183 && entry->flags.search_dirs
185 && !ldemul_unrecognized_file (entry))
269 attempt, entry->local_sym_name);
270 bfd_close (entry->the_bfd);
271 entry->the_bfd = NULL;
278 if (!entry->flags.dynamic && (entry->the_bfd->flags & DYNAMIC) != 0)
282 bfd_close (entry->the_bfd);
283 entry->the_bfd = NULL;
287 if (entry->flags.search_dirs
294 && bfd_check_format (entry->the_bfd, bfd_archive)))
299 attempt, entry->local_sym_name);
300 bfd_close (entry->the_bfd);
301 entry->the_bfd = NULL;
319 && bfd_check_format (entry->the_bfd, bfd_object))
320 plugin_maybe_claim (entry);
333 lang_input_statement_type *entry,
341 if (!entry->flags.maybe_archive)
343 if (entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename))
345 char *name = concat (ld_sysroot, entry->filename,
347 if (ldfile_try_open_bfd (name, entry))
349 entry->filename = name;
354 else if (ldfile_try_open_bfd (entry->filename, entry))
357 if (IS_ABSOLUTE_PATH (entry->filename))
365 if (entry->flags.dynamic && !bfd_link_relocatable (&link_info))
367 if (ldemul_open_dynamic_archive (arch, search, entry))
371 if (entry->flags.maybe_archive && !entry->flags.full_name_provided)
372 string = concat (search->name, slash, lib, entry->filename,
375 string = concat (search->name, slash, entry->filename,
378 if (ldfile_try_open_bfd (string, entry))
380 entry->filename = string;
396 ldfile_open_file (lang_input_statement_type *entry)
398 if (entry->the_bfd != NULL)
401 if (!entry->flags.search_dirs)
403 if (ldfile_try_open_bfd (entry->filename, entry))
406 if (filename_cmp (entry->filename, entry->local_sym_name) != 0)
408 entry->filename, entry->local_sym_name);
410 einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
412 entry->flags.missing_file = true;
420 /* If extra_search_path is set, entry->filename is a relative path.
423 if (entry->extra_search_path)
425 char *path = concat (entry->extra_search_path, slash, entry->filename,
427 if (ldfile_try_open_bfd (path, entry))
429 entry->filename = path;
430 entry->flags.search_dirs = false;
440 found = ldfile_open_file_search (arch->name, entry, "lib", ".a");
444 found = ldfile_open_file_search (arch->name, entry, ":lib", ".a");
448 found = ldemul_find_potential_libraries (arch->name, entry);
456 entry->flags.search_dirs = false;
459 if (entry->flags.sysrooted
461 && IS_ABSOLUTE_PATH (entry->local_sym_name))
463 entry->local_sym_name, ld_sysroot);
473 argv[2] = (char *) entry->local_sym_name;
494 einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
498 einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
504 if (ldfile_open_file_search (arch->name, entry, "", ".a"))
506 const char * base = lbasename (entry->filename);
509 entry->filename, base, base);
510 bfd_close (entry->the_bfd);
511 entry->the_bfd = NULL;
516 entry->flags.missing_file = true;