pe-dll.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* pe-dll.h: Header file for routines used to build Windows DLLs.
  2. Copyright (C) 1999-2015 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. typedef enum { EXCLUDESYMS, EXCLUDELIBS, EXCLUDEFORIMPLIB } exclude_type;
  35. extern void pe_dll_id_target
  36. (const char *);
  37. extern void pe_dll_add_excludes
  38. (const char *, const exclude_type);
  39. extern void pe_dll_generate_def_file
  40. (const char *);
  41. extern void pe_dll_generate_implib
  42. (def_file *, const char *, struct bfd_link_info *);
  43. extern void pe_process_import_defs
  44. (bfd *, struct bfd_link_info *);
  45. extern bfd_boolean pe_implied_import_dll
  46. (const char *);
  47. extern void pe_dll_build_sections
  48. (bfd *, struct bfd_link_info *);
  49. extern void pe_exe_build_sections
  50. (bfd *, struct bfd_link_info *);
  51. extern void pe_dll_fill_sections
  52. (bfd *, struct bfd_link_info *);
  53. extern void pe_exe_fill_sections
  54. (bfd *, struct bfd_link_info *);
  55. extern void pe_walk_relocs_of_symbol
  56. (struct bfd_link_info *, const char *, int (*) (arelent *, asection *));
  57. extern void pe_create_import_fixup
  58. (arelent * rel, asection *, bfd_vma);
  59. extern bfd_boolean pe_bfd_is_dll
  60. (bfd *);
  61. extern void pe_output_file_set_long_section_names
  62. (bfd *);
  63. #endif /* PE_DLL_H */