Lines Matching refs:entry

132 		     lang_input_statement_type *entry)
134 entry->the_bfd = bfd_openr (attempt, entry->target);
138 if (entry->the_bfd == NULL)
144 if (entry->the_bfd == NULL)
147 einfo (_("%F%P: invalid BFD target `%s'\n"), entry->target);
157 if (entry->search_dirs_flag || !entry->dynamic)
161 if (bfd_check_format (entry->the_bfd, bfd_archive))
162 check = bfd_openr_next_archived_file (entry->the_bfd, NULL);
164 check = entry->the_bfd;
170 if (check == entry->the_bfd
171 && entry->search_dirs_flag
173 && ! ldemul_unrecognized_file (entry))
258 attempt, entry->local_sym_name);
259 bfd_close (entry->the_bfd);
260 entry->the_bfd = NULL;
267 if (!entry->dynamic && (entry->the_bfd->flags & DYNAMIC) != 0)
271 bfd_close (entry->the_bfd);
272 entry->the_bfd = NULL;
276 if (entry->search_dirs_flag
282 && bfd_check_format (entry->the_bfd, bfd_archive)))
287 attempt, entry->local_sym_name);
288 bfd_close (entry->the_bfd);
289 entry->the_bfd = NULL;
303 lang_input_statement_type *entry,
311 if (! entry->is_archive)
313 if (entry->sysrooted && IS_ABSOLUTE_PATH (entry->filename))
315 char *name = concat (ld_sysroot, entry->filename,
317 if (ldfile_try_open_bfd (name, entry))
319 entry->filename = name;
324 else if (ldfile_try_open_bfd (entry->filename, entry))
326 entry->sysrooted = IS_ABSOLUTE_PATH (entry->filename)
327 && is_sysrooted_pathname (entry->filename, TRUE);
331 if (IS_ABSOLUTE_PATH (entry->filename))
339 if (entry->dynamic && ! link_info.relocatable)
341 if (ldemul_open_dynamic_archive (arch, search, entry))
343 entry->sysrooted = search->sysrooted;
351 + strlen (entry->filename)
356 if (entry->is_archive)
358 lib, entry->filename, arch, suffix);
360 sprintf (string, "%s%s%s", search->name, slash, entry->filename);
362 if (ldfile_try_open_bfd (string, entry))
364 entry->filename = string;
365 entry->sysrooted = search->sysrooted;
378 ldfile_open_file (lang_input_statement_type *entry)
380 if (entry->the_bfd != NULL)
383 if (! entry->search_dirs_flag)
385 if (ldfile_try_open_bfd (entry->filename, entry))
387 if (strcmp (entry->filename, entry->local_sym_name) != 0)
389 entry->filename, entry->local_sym_name);
391 einfo (_("%F%P: %s: No such file: %E\n"), entry->local_sym_name);
401 found = ldfile_open_file_search (arch->name, entry, "lib", ".a");
405 found = ldfile_open_file_search (arch->name, entry, ":lib", ".a");
409 found = ldemul_find_potential_libraries (arch->name, entry);
417 entry->search_dirs_flag = FALSE;
418 else if (entry->sysrooted
420 && IS_ABSOLUTE_PATH (entry->local_sym_name))
422 entry->local_sym_name, ld_sysroot);
424 einfo (_("%F%P: cannot find %s\n"), entry->local_sym_name);