pep-dll.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* pep-dll.h: Header file for routines used to build Windows DLLs.
  2. Copyright (C) 2006-2015 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. typedef enum { EXCLUDESYMS, EXCLUDELIBS, EXCLUDEFORIMPLIB } exclude_type;
  36. extern void pep_dll_id_target (const char *);
  37. extern void pep_dll_add_excludes (const char *, const exclude_type);
  38. extern void pep_dll_generate_def_file (const char *);
  39. extern void pep_dll_generate_implib (def_file *, const char *, struct bfd_link_info *);
  40. extern void pep_process_import_defs (bfd *, struct bfd_link_info *);
  41. extern bfd_boolean pep_implied_import_dll (const char *);
  42. extern void pep_dll_build_sections (bfd *, struct bfd_link_info *);
  43. extern void pep_exe_build_sections (bfd *, struct bfd_link_info *);
  44. extern void pep_dll_fill_sections (bfd *, struct bfd_link_info *);
  45. extern void pep_exe_fill_sections (bfd *, struct bfd_link_info *);
  46. extern void pep_walk_relocs_of_symbol
  47. (struct bfd_link_info *, const char *, int (*) (arelent *, asection *));
  48. extern void pep_create_import_fixup (arelent * rel, asection *, bfd_vma);
  49. extern bfd_boolean pep_bfd_is_dll (bfd *);
  50. extern void pep_output_file_set_long_section_names (bfd *);
  51. #endif /* PEP_DLL_H */