pep-dll.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* pep-dll.h: Header file for routines used to build Windows DLLs.
  2. Copyright (C) 2006-2022 Free Software Foundation, Inc.
  3. Written by Kai Tietz, OneVision Software GmbH&CoKg.
  4. This file is part of the GNU Binutils.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  16. MA 02110-1301, USA. */
  17. #ifndef PEP_DLL_H
  18. #define PEP_DLL_H
  19. #include "sysdep.h"
  20. #include "bfd.h"
  21. #include "bfdlink.h"
  22. #include "deffile.h"
  23. extern def_file * pep_def_file;
  24. extern int pep_dll_export_everything;
  25. extern int pep_dll_exclude_all_symbols;
  26. extern int pep_dll_do_default_excludes;
  27. extern int pep_dll_kill_ats;
  28. extern int pep_dll_stdcall_aliases;
  29. extern int pep_dll_warn_dup_exports;
  30. extern int pep_dll_compat_implib;
  31. extern int pep_dll_extra_pe_debug;
  32. extern int pep_use_nul_prefixed_import_tables;
  33. extern int pep_use_coff_long_section_names;
  34. extern int pep_leading_underscore;
  35. extern int pep_dll_enable_reloc_section;
  36. typedef enum { EXCLUDESYMS, EXCLUDELIBS, EXCLUDEFORIMPLIB } exclude_type;
  37. extern void pep_dll_id_target (const char *);
  38. extern void pep_dll_add_excludes (const char *, const exclude_type);
  39. extern void pep_dll_generate_def_file (const char *);
  40. extern void pep_dll_generate_implib (def_file *, const char *, struct bfd_link_info *);
  41. extern void pep_process_import_defs (bfd *, struct bfd_link_info *);
  42. extern bool pep_implied_import_dll (const char *);
  43. extern void pep_dll_build_sections (bfd *, struct bfd_link_info *);
  44. extern void pep_exe_build_sections (bfd *, struct bfd_link_info *);
  45. extern void pep_dll_fill_sections (bfd *, struct bfd_link_info *);
  46. extern void pep_exe_fill_sections (bfd *, struct bfd_link_info *);
  47. extern void pep_find_data_imports (const char *,
  48. void (*cb) (arelent *, asection *, char *,
  49. const char *));
  50. extern void pep_create_import_fixup (arelent * rel, asection *, bfd_vma,
  51. char *, const char *);
  52. extern bool pep_bfd_is_dll (bfd *);
  53. extern void pep_output_file_set_long_section_names (bfd *);
  54. #endif /* PEP_DLL_H */