pe-dll.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* pe-dll.h: Header file for routines used to build Windows DLLs.
  2. Copyright (C) 1999-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 PE_DLL_H
  17. #define PE_DLL_H
  18. #include "sysdep.h"
  19. #include "bfd.h"
  20. #include "bfdlink.h"
  21. #include "deffile.h"
  22. extern def_file *pe_def_file;
  23. extern int pe_dll_export_everything;
  24. extern int pe_dll_exclude_all_symbols;
  25. extern int pe_dll_do_default_excludes;
  26. extern int pe_dll_kill_ats;
  27. extern int pe_dll_stdcall_aliases;
  28. extern int pe_dll_warn_dup_exports;
  29. extern int pe_dll_compat_implib;
  30. extern int pe_dll_extra_pe_debug;
  31. extern int pe_use_nul_prefixed_import_tables;
  32. extern int pe_use_coff_long_section_names;
  33. extern int pe_leading_underscore;
  34. extern int pe_dll_enable_reloc_section;
  35. typedef enum { EXCLUDESYMS, EXCLUDELIBS, EXCLUDEFORIMPLIB } exclude_type;
  36. extern void pe_dll_id_target
  37. (const char *);
  38. extern void pe_dll_add_excludes
  39. (const char *, const exclude_type);
  40. extern void pe_dll_generate_def_file
  41. (const char *);
  42. extern void pe_dll_generate_implib
  43. (def_file *, const char *, struct bfd_link_info *);
  44. extern void pe_process_import_defs
  45. (bfd *, struct bfd_link_info *);
  46. extern bool pe_implied_import_dll
  47. (const char *);
  48. extern void pe_dll_build_sections
  49. (bfd *, struct bfd_link_info *);
  50. extern void pe_exe_build_sections
  51. (bfd *, struct bfd_link_info *);
  52. extern void pe_dll_fill_sections
  53. (bfd *, struct bfd_link_info *);
  54. extern void pe_exe_fill_sections
  55. (bfd *, struct bfd_link_info *);
  56. extern void pe_find_data_imports
  57. (const char *, void (*cb) (arelent *, asection *, char *, const char *));
  58. extern void pe_create_import_fixup
  59. (arelent * rel, asection *, bfd_vma, char *, const char *);
  60. extern bool pe_bfd_is_dll
  61. (bfd *);
  62. extern void pe_output_file_set_long_section_names
  63. (bfd *);
  64. #endif /* PE_DLL_H */