ldfile.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* ldfile.h -
  2. Copyright (C) 1991-2022 Free Software Foundation, Inc.
  3. This file is part of the GNU Binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #ifndef LDFILE_H
  17. #define LDFILE_H
  18. extern bool ldfile_assumed_script;
  19. extern unsigned long ldfile_output_machine;
  20. extern enum bfd_architecture ldfile_output_architecture;
  21. extern const char *ldfile_output_machine_name;
  22. /* Structure used to hold the list of directories to search for
  23. libraries. */
  24. typedef struct search_dirs {
  25. /* Next directory on list. */
  26. struct search_dirs *next;
  27. /* Name of directory. */
  28. const char *name;
  29. /* TRUE if this is from the command line. */
  30. bool cmdline;
  31. } search_dirs_type;
  32. extern search_dirs_type *search_head;
  33. extern void ldfile_add_arch
  34. (const char *);
  35. extern void ldfile_add_library_path
  36. (const char *, bool cmdline);
  37. extern void ldfile_open_command_file
  38. (const char *name);
  39. extern void ldfile_open_script_file
  40. (const char *name);
  41. extern void ldfile_open_default_command_file
  42. (const char *name);
  43. extern void ldfile_open_file
  44. (struct lang_input_statement_struct *);
  45. extern bool ldfile_try_open_bfd
  46. (const char *, struct lang_input_statement_struct *);
  47. extern void ldfile_set_output_arch
  48. (const char *, enum bfd_architecture);
  49. extern bool ldfile_open_file_search
  50. (const char *arch, struct lang_input_statement_struct *,
  51. const char *lib, const char *suffix);
  52. #endif