Commit | Line | Data |
---|---|---|
1069dd8d | 1 | /* pe-dll.h: Header file for routines used to build Windows DLLs. |
b3adc24a | 2 | Copyright (C) 1999-2020 Free Software Foundation, Inc. |
1069dd8d | 3 | |
f96b4a7b | 4 | This file is part of the GNU Binutils. |
1069dd8d | 5 | |
f96b4a7b | 6 | This program is free software; you can redistribute it and/or modify |
1069dd8d | 7 | it under the terms of the GNU General Public License as published by |
f96b4a7b NC |
8 | the Free Software Foundation; either version 3 of the License, or |
9 | (at your option) any later version. | |
1069dd8d | 10 | |
f96b4a7b | 11 | This program is distributed in the hope that it will be useful, |
1069dd8d ILT |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
f96b4a7b NC |
17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | |
19 | MA 02110-1301, USA. */ | |
1069dd8d ILT |
20 | |
21 | #ifndef PE_DLL_H | |
22 | #define PE_DLL_H | |
23 | ||
1069dd8d | 24 | #include "sysdep.h" |
3db64b00 | 25 | #include "bfd.h" |
1069dd8d ILT |
26 | #include "bfdlink.h" |
27 | #include "deffile.h" | |
28 | ||
29 | extern def_file *pe_def_file; | |
30 | extern int pe_dll_export_everything; | |
2927aaca | 31 | extern int pe_dll_exclude_all_symbols; |
1069dd8d ILT |
32 | extern int pe_dll_do_default_excludes; |
33 | extern int pe_dll_kill_ats; | |
34 | extern int pe_dll_stdcall_aliases; | |
870df5dc NC |
35 | extern int pe_dll_warn_dup_exports; |
36 | extern int pe_dll_compat_implib; | |
b044cda1 | 37 | extern int pe_dll_extra_pe_debug; |
ce11ba6c | 38 | extern int pe_use_nul_prefixed_import_tables; |
88183869 | 39 | extern int pe_use_coff_long_section_names; |
522f09cd | 40 | extern int pe_leading_underscore; |
dc9bd8c9 | 41 | extern int pe_dll_enable_reloc_section; |
1069dd8d | 42 | |
e1c37eb5 DK |
43 | typedef enum { EXCLUDESYMS, EXCLUDELIBS, EXCLUDEFORIMPLIB } exclude_type; |
44 | ||
b34976b6 | 45 | extern void pe_dll_id_target |
1579bae1 | 46 | (const char *); |
b34976b6 | 47 | extern void pe_dll_add_excludes |
e1c37eb5 | 48 | (const char *, const exclude_type); |
b34976b6 | 49 | extern void pe_dll_generate_def_file |
1579bae1 | 50 | (const char *); |
b34976b6 | 51 | extern void pe_dll_generate_implib |
e1c37eb5 | 52 | (def_file *, const char *, struct bfd_link_info *); |
b34976b6 | 53 | extern void pe_process_import_defs |
1579bae1 | 54 | (bfd *, struct bfd_link_info *); |
b34976b6 | 55 | extern bfd_boolean pe_implied_import_dll |
1579bae1 | 56 | (const char *); |
b34976b6 | 57 | extern void pe_dll_build_sections |
1579bae1 | 58 | (bfd *, struct bfd_link_info *); |
b34976b6 | 59 | extern void pe_exe_build_sections |
1579bae1 | 60 | (bfd *, struct bfd_link_info *); |
b34976b6 | 61 | extern void pe_dll_fill_sections |
1579bae1 | 62 | (bfd *, struct bfd_link_info *); |
b34976b6 | 63 | extern void pe_exe_fill_sections |
1579bae1 | 64 | (bfd *, struct bfd_link_info *); |
317ff008 EB |
65 | extern void pe_find_data_imports |
66 | (const char *, void (*cb) (arelent *, asection *, char *, const char *)); | |
b34976b6 | 67 | extern void pe_create_import_fixup |
317ff008 | 68 | (arelent * rel, asection *, bfd_vma, char *, const char *); |
ff2bdb9c CF |
69 | extern bfd_boolean pe_bfd_is_dll |
70 | (bfd *); | |
88183869 | 71 | extern void pe_output_file_set_long_section_names |
2927aaca | 72 | (bfd *); |
ff2bdb9c | 73 | |
1069dd8d | 74 | #endif /* PE_DLL_H */ |