Lines Matching refs:pe

45    The *sole* difference between the pe format and the pei format is that the
49 Are there more subtle differences between pe and pei formats?
55 because the `i' in `pei' also refers to "image". The `pe' format can
93 #include "coff/pe.h"
465 struct internal_extra_pe_aouthdr *a = &aouthdr_int->pe;
618 pe_data_type *pe = pe_data (abfd);
619 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
628 idata2 = pe->pe_opthdr.DataDirectory[PE_IMPORT_TABLE];
629 idata5 = pe->pe_opthdr.DataDirectory[PE_IMPORT_ADDRESS_TABLE];
630 tls = pe->pe_opthdr.DataDirectory[PE_TLS_TABLE];
691 if (pe->has_reloc_section)
830 filehdr_in->pe.e_magic = IMAGE_DOS_SIGNATURE;
831 filehdr_in->pe.e_cblp = 0x90;
832 filehdr_in->pe.e_cp = 0x3;
833 filehdr_in->pe.e_crlc = 0x0;
834 filehdr_in->pe.e_cparhdr = 0x4;
835 filehdr_in->pe.e_minalloc = 0x0;
836 filehdr_in->pe.e_maxalloc = 0xffff;
837 filehdr_in->pe.e_ss = 0x0;
838 filehdr_in->pe.e_sp = 0xb8;
839 filehdr_in->pe.e_csum = 0x0;
840 filehdr_in->pe.e_ip = 0x0;
841 filehdr_in->pe.e_cs = 0x0;
842 filehdr_in->pe.e_lfarlc = 0x40;
843 filehdr_in->pe.e_ovno = 0x0;
846 filehdr_in->pe.e_res[idx] = 0x0;
848 filehdr_in->pe.e_oemid = 0x0;
849 filehdr_in->pe.e_oeminfo = 0x0;
852 filehdr_in->pe.e_res2[idx] = 0x0;
854 filehdr_in->pe.e_lfanew = 0x80;
858 memcpy (filehdr_in->pe.dos_message, pe_data (abfd)->dos_message,
859 sizeof (filehdr_in->pe.dos_message));
861 filehdr_in->pe.nt_signature = IMAGE_NT_SIGNATURE;
882 H_PUT_16 (abfd, filehdr_in->pe.e_magic, filehdr_out->e_magic);
883 H_PUT_16 (abfd, filehdr_in->pe.e_cblp, filehdr_out->e_cblp);
884 H_PUT_16 (abfd, filehdr_in->pe.e_cp, filehdr_out->e_cp);
885 H_PUT_16 (abfd, filehdr_in->pe.e_crlc, filehdr_out->e_crlc);
886 H_PUT_16 (abfd, filehdr_in->pe.e_cparhdr, filehdr_out->e_cparhdr);
887 H_PUT_16 (abfd, filehdr_in->pe.e_minalloc, filehdr_out->e_minalloc);
888 H_PUT_16 (abfd, filehdr_in->pe.e_maxalloc, filehdr_out->e_maxalloc);
889 H_PUT_16 (abfd, filehdr_in->pe.e_ss, filehdr_out->e_ss);
890 H_PUT_16 (abfd, filehdr_in->pe.e_sp, filehdr_out->e_sp);
891 H_PUT_16 (abfd, filehdr_in->pe.e_csum, filehdr_out->e_csum);
892 H_PUT_16 (abfd, filehdr_in->pe.e_ip, filehdr_out->e_ip);
893 H_PUT_16 (abfd, filehdr_in->pe.e_cs, filehdr_out->e_cs);
894 H_PUT_16 (abfd, filehdr_in->pe.e_lfarlc, filehdr_out->e_lfarlc);
895 H_PUT_16 (abfd, filehdr_in->pe.e_ovno, filehdr_out->e_ovno);
898 H_PUT_16 (abfd, filehdr_in->pe.e_res[idx], filehdr_out->e_res[idx]);
900 H_PUT_16 (abfd, filehdr_in->pe.e_oemid, filehdr_out->e_oemid);
901 H_PUT_16 (abfd, filehdr_in->pe.e_oeminfo, filehdr_out->e_oeminfo);
904 H_PUT_16 (abfd, filehdr_in->pe.e_res2[idx], filehdr_out->e_res2[idx]);
906 H_PUT_32 (abfd, filehdr_in->pe.e_lfanew, filehdr_out->e_lfanew);
909 H_PUT_32 (abfd, filehdr_in->pe.dos_message[idx],
913 H_PUT_32 (abfd, filehdr_in->pe.nt_signature, filehdr_out->nt_signature);
1262 pe_data_type *pe = pe_data (abfd);
1263 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
1551 pe_data_type *pe = pe_data (abfd);
1552 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
2423 pe_data_type * pe;
2430 pe = pe_data (abfd);
2431 if (pe == NULL)
2444 rva_bias = section->vma - pe->pe_opthdr.ImageBase;
2534 pe_data_type *pe = pe_data (abfd);
2535 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
2652 pe_data_type *pe = pe_data (abfd);
2653 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
2720 pe_data_type *pe = pe_data (abfd);
2721 struct internal_extra_pe_aouthdr *i = &pe->pe_opthdr;
2728 fprintf (file, _("\nCharacteristics 0x%x\n"), pe->real_flags);
2730 #define PF(x, y) if (pe->real_flags & x) { fprintf (file, "\t%s\n", y); }
2753 fprintf (file, "\nTime/Date\t\t%08lx", pe->coff.timestamp);
2759 time_t t = pe->coff.timestamp;
4165 pe_data_type * pe;
4187 pe = pe_data (abfd);
4188 if (pe == NULL)
4191 rva_bias = sec->vma - pe->pe_opthdr.ImageBase;
4279 rva_bias = sec->vma - pe->pe_opthdr.ImageBase;
4349 write_data.rva_bias = sec->vma - pe->pe_opthdr.ImageBase;