Lines Matching refs:pe_def_file
150 def_file * pe_def_file = 0; variable
544 sizeof (pe_def_file->exports[0]), pe_export_sort)) in auto_export()
653 if (!pe_def_file) in process_def_file_and_drectve()
654 pe_def_file = def_file_empty (); in process_def_file_and_drectve()
667 def_file_add_directive (pe_def_file, buf, size); in process_def_file_and_drectve()
677 if (pe_def_file->aligncomms) in process_def_file_and_drectve()
679 def_file_aligncomm *ac = pe_def_file->aligncomms; in process_def_file_and_drectve()
696 if (info->executable && pe_def_file->num_exports == 0 in process_def_file_and_drectve()
701 if ((pe_dll_export_everything || pe_def_file->num_exports == 0) in process_def_file_and_drectve()
755 if (auto_export (b, pe_def_file, sn)) in process_def_file_and_drectve()
760 p = def_file_add_export (pe_def_file, sn, 0, -1, in process_def_file_and_drectve()
772 #define NE pe_def_file->num_exports in process_def_file_and_drectve()
787 if (pe_def_file->exports[i].name[0] != '?' in process_def_file_and_drectve()
788 && strchr (pe_def_file->exports[i].name, '@')) in process_def_file_and_drectve()
793 int lead_at = (*pe_def_file->exports[i].name == '@'); in process_def_file_and_drectve()
794 char *tmp = xstrdup (pe_def_file->exports[i].name + lead_at); in process_def_file_and_drectve()
801 pe_def_file->exports[i].name); in process_def_file_and_drectve()
802 pe_def_file->exports[i].name = tmp; in process_def_file_and_drectve()
811 qsort (pe_def_file->exports, NE, sizeof (pe_def_file->exports[0]), in process_def_file_and_drectve()
818 if (is_import (pe_def_file->exports[i].name)) in process_def_file_and_drectve()
821 if (strchr (pe_def_file->exports[i].name, '@')) in process_def_file_and_drectve()
824 int lead_at = (*pe_def_file->exports[i].name == '@'); in process_def_file_and_drectve()
825 char *tmp = xstrdup (pe_def_file->exports[i].name + lead_at); in process_def_file_and_drectve()
828 if (auto_export (NULL, pe_def_file, tmp)) in process_def_file_and_drectve()
829 def_file_add_export (pe_def_file, tmp, in process_def_file_and_drectve()
830 pe_def_file->exports[i].internal_name, in process_def_file_and_drectve()
839 e = pe_def_file->exports; in process_def_file_and_drectve()
883 pe_def_file->num_exports = j; /* == NE */ in process_def_file_and_drectve()
898 name = xmalloc (strlen (pe_def_file->exports[i].internal_name) + 2); in process_def_file_and_drectve()
900 && (*pe_def_file->exports[i].internal_name != '@')) in process_def_file_and_drectve()
903 strcpy (name + 1, pe_def_file->exports[i].internal_name); in process_def_file_and_drectve()
906 strcpy (name, pe_def_file->exports[i].internal_name); in process_def_file_and_drectve()
917 if (!pe_def_file->exports[i].flag_noname) in process_def_file_and_drectve()
928 if (pe_def_file->exports[i].ordinal != -1) in process_def_file_and_drectve()
930 if (max_ordinal < pe_def_file->exports[i].ordinal) in process_def_file_and_drectve()
931 max_ordinal = pe_def_file->exports[i].ordinal; in process_def_file_and_drectve()
932 if (min_ordinal > pe_def_file->exports[i].ordinal) in process_def_file_and_drectve()
933 min_ordinal = pe_def_file->exports[i].ordinal; in process_def_file_and_drectve()
942 else if (strchr (pe_def_file->exports[i].internal_name, '.')) in process_def_file_and_drectve()
945 if (!pe_def_file->exports[i].flag_noname) in process_def_file_and_drectve()
948 pe_def_file->exports[i].flag_forward = 1; in process_def_file_and_drectve()
950 if (pe_def_file->exports[i].ordinal != -1) in process_def_file_and_drectve()
952 if (max_ordinal < pe_def_file->exports[i].ordinal) in process_def_file_and_drectve()
953 max_ordinal = pe_def_file->exports[i].ordinal; in process_def_file_and_drectve()
954 if (min_ordinal > pe_def_file->exports[i].ordinal) in process_def_file_and_drectve()
955 min_ordinal = pe_def_file->exports[i].ordinal; in process_def_file_and_drectve()
963 pe_def_file->exports[i].internal_name); in process_def_file_and_drectve()
969 pe_def_file->exports[i].internal_name, in process_def_file_and_drectve()
976 pe_def_file->exports[i].internal_name); in process_def_file_and_drectve()
1048 if (pe_def_file->name) in generate_edata()
1049 dll_name = pe_def_file->name; in generate_edata()
1079 pe_def_file->exports[i].flag_forward) in generate_edata()
1081 if (pe_def_file->exports[i].ordinal != -1) in generate_edata()
1083 int ei = pe_def_file->exports[i].ordinal - min_ordinal; in generate_edata()
1090 pe_def_file->exports[i].ordinal, in generate_edata()
1091 pe_def_file->exports[i].name, in generate_edata()
1092 pe_def_file->exports[pi].name); in generate_edata()
1096 if (pe_def_file->exports[i].its_name) in generate_edata()
1097 name_table_size += strlen (pe_def_file->exports[i].its_name) + 1; in generate_edata()
1099 name_table_size += strlen (pe_def_file->exports[i].name) + 1; in generate_edata()
1103 if (pe_def_file->exports[i].flag_forward) in generate_edata()
1105 name_table_size += strlen (pe_def_file->exports[i].internal_name) + 1; in generate_edata()
1112 pe_def_file->exports[i].flag_forward) && in generate_edata()
1113 pe_def_file->exports[i].ordinal == -1) in generate_edata()
1119 pe_def_file->exports[i].ordinal = next_ordinal; in generate_edata()
1139 for (i = 0; i < pe_def_file->num_exports; i++) in fill_exported_offsets()
1143 name = xmalloc (strlen (pe_def_file->exports[i].internal_name) + 2); in fill_exported_offsets()
1145 && *pe_def_file->exports[i].internal_name != '@') in fill_exported_offsets()
1148 strcpy (name + 1, pe_def_file->exports[i].internal_name); in fill_exported_offsets()
1151 strcpy (name, pe_def_file->exports[i].internal_name); in fill_exported_offsets()
1191 if (pe_def_file->version_major != -1) in fill_edata()
1193 bfd_put_16 (abfd, pe_def_file->version_major, edata_d + 8); in fill_edata()
1194 bfd_put_16 (abfd, pe_def_file->version_minor, edata_d + 10); in fill_edata()
1219 if (pe_def_file->exports[s].ordinal != -1 && in fill_edata()
1220 (pe_def_file->exports[s].flag_forward || ssec != NULL)) in fill_edata()
1222 int ord = pe_def_file->exports[s].ordinal; in fill_edata()
1224 if (pe_def_file->exports[s].flag_forward) in fill_edata()
1229 strcpy (enamestr, pe_def_file->exports[s].internal_name); in fill_edata()
1230 enamestr += strlen (pe_def_file->exports[s].internal_name) + 1; in fill_edata()
1242 if (!pe_def_file->exports[s].flag_noname) in fill_edata()
1244 char *ename = pe_def_file->exports[s].name; in fill_edata()
1245 if (pe_def_file->exports[s].its_name) in fill_edata()
1246 ename = pe_def_file->exports[s].its_name; in fill_edata()
1254 pe_def_file->exports[s].hint = hint++; in fill_edata()
1610 if (pe_def_file) in pe_dll_generate_def_file()
1612 if (pe_def_file->name) in pe_dll_generate_def_file()
1614 if (pe_def_file->is_dll) in pe_dll_generate_def_file()
1619 quoteput (pe_def_file->name, out, 1); in pe_dll_generate_def_file()
1629 if (pe_def_file->description) in pe_dll_generate_def_file()
1632 quoteput (pe_def_file->description, out, 1); in pe_dll_generate_def_file()
1636 if (pe_def_file->version_minor != -1) in pe_dll_generate_def_file()
1637 fprintf (out, "VERSION %d.%d\n", pe_def_file->version_major, in pe_dll_generate_def_file()
1638 pe_def_file->version_minor); in pe_dll_generate_def_file()
1639 else if (pe_def_file->version_major != -1) in pe_dll_generate_def_file()
1640 fprintf (out, "VERSION %d\n", pe_def_file->version_major); in pe_dll_generate_def_file()
1642 if (pe_def_file->stack_reserve != -1 || pe_def_file->heap_reserve != -1) in pe_dll_generate_def_file()
1645 if (pe_def_file->stack_commit != -1) in pe_dll_generate_def_file()
1647 pe_def_file->stack_reserve, pe_def_file->stack_commit); in pe_dll_generate_def_file()
1648 else if (pe_def_file->stack_reserve != -1) in pe_dll_generate_def_file()
1649 fprintf (out, "STACKSIZE 0x%x\n", pe_def_file->stack_reserve); in pe_dll_generate_def_file()
1651 if (pe_def_file->heap_commit != -1) in pe_dll_generate_def_file()
1653 pe_def_file->heap_reserve, pe_def_file->heap_commit); in pe_dll_generate_def_file()
1654 else if (pe_def_file->heap_reserve != -1) in pe_dll_generate_def_file()
1655 fprintf (out, "HEAPSIZE 0x%x\n", pe_def_file->heap_reserve); in pe_dll_generate_def_file()
1657 if (pe_def_file->num_section_defs > 0) in pe_dll_generate_def_file()
1661 for (i = 0; i < pe_def_file->num_section_defs; i++) in pe_dll_generate_def_file()
1664 quoteput (pe_def_file->section_defs[i].name, out, 0); in pe_dll_generate_def_file()
1666 if (pe_def_file->section_defs[i].class) in pe_dll_generate_def_file()
1669 quoteput (pe_def_file->section_defs[i].class, out, 0); in pe_dll_generate_def_file()
1672 if (pe_def_file->section_defs[i].flag_read) in pe_dll_generate_def_file()
1675 if (pe_def_file->section_defs[i].flag_write) in pe_dll_generate_def_file()
1678 if (pe_def_file->section_defs[i].flag_execute) in pe_dll_generate_def_file()
1681 if (pe_def_file->section_defs[i].flag_shared) in pe_dll_generate_def_file()
1688 if (pe_def_file->num_exports > 0) in pe_dll_generate_def_file()
1692 for (i = 0; i < pe_def_file->num_exports; i++) in pe_dll_generate_def_file()
1694 def_file_export *e = pe_def_file->exports + i; in pe_dll_generate_def_file()
1723 if (pe_def_file->num_imports > 0) in pe_dll_generate_def_file()
1727 for (i = 0; i < pe_def_file->num_imports; i++) in pe_dll_generate_def_file()
1729 def_file_import *im = pe_def_file->imports + i; in pe_dll_generate_def_file()
2791 if (pe_def_file->exports[i].flag_private) in pe_dll_generate_implib()
3005 if (!pe_def_file) in pe_process_import_defs()
3008 imp = pe_def_file->imports; in pe_process_import_defs()
3012 for (module = pe_def_file->modules; module; module = module->next) in pe_process_import_defs()
3016 for (i = 0; i < pe_def_file->num_imports && imp[i].module != module; i++) in pe_process_import_defs()
3018 if (i >= pe_def_file->num_imports) in pe_process_import_defs()
3027 for (; i < pe_def_file->num_imports && imp[i].module == module; i++) in pe_process_import_defs()
3292 if (pe_def_file == 0) in pe_implied_import_dll()
3293 pe_def_file = def_file_empty (); in pe_implied_import_dll()
3306 if (def_get_module (pe_def_file, dllname)) in pe_implied_import_dll()
3335 imp = def_file_add_import (pe_def_file, erva + name_rva, in pe_implied_import_dll()
3372 if (pe_def_file->num_exports == 0 && !info->shared) in pe_dll_build_sections()