Lines Matching refs:entry
186 einfo ("%F%P: malformed remap file entry: %s\n", line);
198 einfo ("%F%P: malformed remap file entry: %s\n", line);
204 /* Advance past the rename entry. */
336 lang_input_statement_type *entry)
338 entry->the_bfd = bfd_openr (attempt, entry->target);
342 if (entry->the_bfd == NULL)
348 if (entry->the_bfd == NULL)
351 einfo (_("%F%P: invalid BFD target `%s'\n"), entry->target);
357 if (!entry->flags.lto_output)
362 entry->the_bfd->flags |= BFD_DECOMPRESS;
365 entry->the_bfd->is_linker_input = 1;
368 if (entry->flags.lto_output)
369 entry->the_bfd->lto_output = 1;
383 if (entry->flags.search_dirs || !entry->flags.dynamic)
387 if (bfd_check_format (entry->the_bfd, bfd_archive))
388 check = bfd_openr_next_archived_file (entry->the_bfd, NULL);
390 check = entry->the_bfd;
396 if (check == entry->the_bfd
397 && entry->flags.search_dirs
399 && !ldemul_unrecognized_file (entry))
483 attempt, entry->local_sym_name);
484 bfd_close (entry->the_bfd);
485 entry->the_bfd = NULL;
492 if (!entry->flags.dynamic && (entry->the_bfd->flags & DYNAMIC) != 0)
496 bfd_close (entry->the_bfd);
497 entry->the_bfd = NULL;
501 if (entry->flags.search_dirs
508 && bfd_check_format (entry->the_bfd, bfd_archive)))
513 attempt, entry->local_sym_name);
514 bfd_close (entry->the_bfd);
515 entry->the_bfd = NULL;
533 && bfd_check_format (entry->the_bfd, bfd_object))
534 plugin_maybe_claim (entry);
547 lang_input_statement_type *entry,
555 if (!entry->flags.maybe_archive)
557 if (entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename))
559 char *name = concat (ld_sysroot, entry->filename,
561 if (ldfile_try_open_bfd (name, entry))
563 entry->filename = name;
568 else if (ldfile_try_open_bfd (entry->filename, entry))
571 if (IS_ABSOLUTE_PATH (entry->filename))
579 if (entry->flags.dynamic && !bfd_link_relocatable (&link_info))
581 if (ldemul_open_dynamic_archive (arch, search, entry))
585 if (entry->flags.maybe_archive && !entry->flags.full_name_provided)
586 string = concat (search->name, slash, lib, entry->filename,
589 string = concat (search->name, slash, entry->filename,
592 if (ldfile_try_open_bfd (string, entry))
594 entry->filename = string;
610 ldfile_open_file (lang_input_statement_type *entry)
612 if (entry->the_bfd != NULL)
615 if (!entry->flags.search_dirs)
617 if (ldfile_try_open_bfd (entry->filename, entry))
620 if (filename_cmp (entry->filename, entry->local_sym_name) != 0)
622 entry->filename, entry->local_sym_name);
624 einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
626 entry->flags.missing_file = true;
634 /* If extra_search_path is set, entry->filename is a relative path.
637 if (entry->extra_search_path)
639 char *path = concat (entry->extra_search_path, slash, entry->filename,
641 if (ldfile_try_open_bfd (path, entry))
643 entry->filename = path;
644 entry->flags.search_dirs = false;
654 found = ldfile_open_file_search (arch->name, entry, "lib", ".a");
658 found = ldfile_open_file_search (arch->name, entry, ":lib", ".a");
662 found = ldemul_find_potential_libraries (arch->name, entry);
670 entry->flags.search_dirs = false;
673 if (entry->flags.sysrooted
675 && IS_ABSOLUTE_PATH (entry->local_sym_name))
677 entry->local_sym_name, ld_sysroot);
687 argv[2] = (char *) entry->local_sym_name;
708 einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
712 einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
718 if (ldfile_open_file_search (arch->name, entry, "", ".a"))
720 const char * base = lbasename (entry->filename);
723 entry->filename, base, base);
724 bfd_close (entry->the_bfd);
725 entry->the_bfd = NULL;
730 entry->flags.missing_file = true;