Home | History | Annotate | Download | only in bfd

Lines Matching refs:extra

630   struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
635 sa = extra->SectionAlignment;
636 fa = extra->FileAlignment;
637 ib = extra->ImageBase;
673 extra->NumberOfRvaAndSizes = IMAGE_NUMBEROF_DIRECTORY_ENTRIES;
675 add_data_entry (abfd, extra, 0, ".edata", ib);
676 add_data_entry (abfd, extra, 2, ".rsrc", ib);
677 add_data_entry (abfd, extra, 3, ".pdata", ib);
688 extra->DataDirectory[PE_IMPORT_TABLE] = idata2;
689 extra->DataDirectory[PE_IMPORT_ADDRESS_TABLE] = idata5;
690 extra->DataDirectory[PE_TLS_TABLE] = tls;
692 if (extra->DataDirectory[PE_IMPORT_TABLE].VirtualAddress == 0)
695 add_data_entry (abfd, extra, 1, ".idata", ib);
703 add_data_entry (abfd, extra, 5, ".reloc", ib);
736 isize = (sec->vma - extra->ImageBase
742 extra->SizeOfHeaders = hsize;
743 extra->SizeOfImage = isize;
769 PUT_OPTHDR_IMAGE_BASE (abfd, extra->ImageBase, aouthdr_out->ImageBase);
770 H_PUT_32 (abfd, extra->SectionAlignment, aouthdr_out->SectionAlignment);
771 H_PUT_32 (abfd, extra->FileAlignment, aouthdr_out->FileAlignment);
772 H_PUT_16 (abfd, extra->MajorOperatingSystemVersion,
774 H_PUT_16 (abfd, extra->MinorOperatingSystemVersion,
776 H_PUT_16 (abfd, extra->MajorImageVersion, aouthdr_out->MajorImageVersion);
777 H_PUT_16 (abfd, extra->MinorImageVersion, aouthdr_out->MinorImageVersion);
778 H_PUT_16 (abfd, extra->MajorSubsystemVersion,
780 H_PUT_16 (abfd, extra->MinorSubsystemVersion,
782 H_PUT_32 (abfd, extra->Reserved1, aouthdr_out->Reserved1);
783 H_PUT_32 (abfd, extra->SizeOfImage, aouthdr_out->SizeOfImage);
784 H_PUT_32 (abfd, extra->SizeOfHeaders, aouthdr_out->SizeOfHeaders);
785 H_PUT_32 (abfd, extra->CheckSum, aouthdr_out->CheckSum);
786 H_PUT_16 (abfd, extra->Subsystem, aouthdr_out->Subsystem);
787 H_PUT_16 (abfd, extra->DllCharacteristics, aouthdr_out->DllCharacteristics);
788 PUT_OPTHDR_SIZE_OF_STACK_RESERVE (abfd, extra->SizeOfStackReserve,
790 PUT_OPTHDR_SIZE_OF_STACK_COMMIT (abfd, extra->SizeOfStackCommit,
792 PUT_OPTHDR_SIZE_OF_HEAP_RESERVE (abfd, extra->SizeOfHeapReserve,
794 PUT_OPTHDR_SIZE_OF_HEAP_COMMIT (abfd, extra->SizeOfHeapCommit,
796 H_PUT_32 (abfd, extra->LoaderFlags, aouthdr_out->LoaderFlags);
797 H_PUT_32 (abfd, extra->NumberOfRvaAndSizes,
804 H_PUT_32 (abfd, extra->DataDirectory[idx].VirtualAddress,
806 H_PUT_32 (abfd, extra->DataDirectory[idx].Size,
887 /* Put in extra dos header stuff. This data remains essentially
1000 /* Extra flags must be set when dealing with PE. All sections should also
1269 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
1273 addr = extra->DataDirectory[PE_IMPORT_TABLE].VirtualAddress;
1275 if (addr == 0 && extra->DataDirectory[PE_IMPORT_TABLE].Size == 0)
1277 /* Maybe the extra header isn't there. Look for the section. */
1289 addr += extra->ImageBase;
1385 adj = section->vma - extra->ImageBase;
1399 /* Print (i + extra->DataDirectory[PE_IMPORT_TABLE].VirtualAddress). */
1438 ft_addr = first_thunk + extra->ImageBase;
1467 ft_idx = first_thunk - (ft_section->vma - extra->ImageBase);
1604 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
1608 addr = extra->DataDirectory[PE_EXPORT_TABLE].VirtualAddress;
1610 if (addr == 0 && extra->DataDirectory[PE_EXPORT_TABLE].Size == 0)
1612 /* Maybe the extra header isn't there. Look for the section. */
1625 addr += extra->ImageBase;
1646 datasize = extra->DataDirectory[PE_EXPORT_TABLE].Size;
1689 adj = section->vma - extra->ImageBase + dataoff;
2532 /* If the extra data is all zeros then do not complain.
2539 fprintf (file, _("\nWARNING: Extra data in .rsrc section - it will be ignored by Windows:\n"));
2578 struct internal_extra_pe_aouthdr *extra = &pe->pe_opthdr;
2584 bfd_vma addr = extra->DataDirectory[PE_DEBUG_DATA].VirtualAddress;
2585 bfd_size_type size = extra->DataDirectory[PE_DEBUG_DATA].Size;
2590 addr += extra->ImageBase;
3775 We need to allocate an extra COPY_NEEDED bytes in A and then bring