section 184 nt/preprep.c PIMAGE_SECTION_HEADER section; section 187 nt/preprep.c section = IMAGE_FIRST_SECTION (nt_header); section 191 nt/preprep.c if (strcmp (section->Name, name) == 0) section 192 nt/preprep.c return section; section 193 nt/preprep.c section++; section 203 nt/preprep.c PIMAGE_SECTION_HEADER section; section 206 nt/preprep.c section = IMAGE_FIRST_SECTION (nt_header); section 216 nt/preprep.c DWORD_PTR real_size = max (section->SizeOfRawData, section 217 nt/preprep.c section->Misc.VirtualSize); section 218 nt/preprep.c if (rva >= section->VirtualAddress section 219 nt/preprep.c && rva < section->VirtualAddress + real_size) section 220 nt/preprep.c return section; section 221 nt/preprep.c section++; section 231 nt/preprep.c PIMAGE_SECTION_HEADER section; section 234 nt/preprep.c section = IMAGE_FIRST_SECTION (nt_header); section 238 nt/preprep.c if (offset >= section->PointerToRawData section 239 nt/preprep.c && offset < section->PointerToRawData + section->SizeOfRawData) section 240 nt/preprep.c return section; section 241 nt/preprep.c section++; section 283 nt/preprep.c #define OFFSET_TO_RVA(offset, section) \ section 284 nt/preprep.c ((section)->VirtualAddress + ((DWORD_PTR)(offset) - (section)->PointerToRawData)) section 286 nt/preprep.c #define RVA_TO_OFFSET(rva, section) \ section 287 nt/preprep.c ((section)->PointerToRawData + ((DWORD_PTR)(rva) - (section)->VirtualAddress)) section 289 nt/preprep.c #define RVA_TO_SECTION_OFFSET(rva, section) \ section 290 nt/preprep.c ((DWORD_PTR)(rva) - (section)->VirtualAddress) section 292 nt/preprep.c #define RVA_TO_PTR(var,section,filedata) \ section 293 nt/preprep.c ((void *)((unsigned char *)(RVA_TO_OFFSET(var,section) + (filedata)->file_base))) section 353 nt/preprep.c PIMAGE_SECTION_HEADER section; section 396 nt/preprep.c section = IMAGE_FIRST_SECTION (nt_header); section 415 nt/preprep.c (DWORD_PTR) section - (DWORD_PTR) nt_header); section 417 nt/preprep.c COPY_CHUNK ("Copying section table...", section, section 418 nt/preprep.c nt_header->FileHeader.NumberOfSections * sizeof (*section)); section 421 nt/preprep.c dst += 2 * sizeof (*section); section 429 nt/preprep.c i++, section++, dst_section++) section 432 nt/preprep.c sprintf (msg, "Copying raw data for %s...", section->Name); section 435 nt/preprep.c if (section == import_section || section == reloc_section) section 457 nt/preprep.c (msg, OFFSET_TO_PTR (section->PointerToRawData, p_infile), section 458 nt/preprep.c section->SizeOfRawData); section 517 nt/preprep.c section--; section 518 nt/preprep.c offset = ROUND_UP (section->PointerToRawData + section->SizeOfRawData, section 531 nt/preprep.c section = IMAGE_FIRST_SECTION (nt_header); section 575 nt/preprep.c section = rva_to_section (debug_dir->VirtualAddress, dst_nt_header); section 576 nt/preprep.c if (section) section 580 nt/preprep.c debug_entry = RVA_TO_PTR (debug_dir->VirtualAddress, section, p_outfile); section 602 nt/preprep.c section = rva_to_section (import_dir->VirtualAddress, dst_nt_header); section 603 nt/preprep.c imports = RVA_TO_PTR (import_dir->VirtualAddress, section, p_outfile); section 611 nt/preprep.c for (import_thunks = RVA_TO_PTR (imports->OriginalFirstThunk, section, p_outfile); section 617 nt/preprep.c for (import_thunks = RVA_TO_PTR (imports->FirstThunk, section, p_outfile); section 692 nt/preprep.c section = rva_to_section (page_rva, dst_nt_header); section 694 nt/preprep.c if (section->Name[0] == 'X') section 702 nt/preprep.c ploc = RVA_TO_PTR (page_rva + page_offset, section, p_outfile); section 320 src/conf_post.h # define ATTRIBUTE_SECTION(name) __attribute__((section (name))) section 4574 src/pdumper.c HANDLE section = NULL; section 4601 src/pdumper.c section = CreateFileMapping (file, section 4607 src/pdumper.c if (!section) section 4626 src/pdumper.c ret = MapViewOfFileEx (section, section 4637 src/pdumper.c if (section && !CloseHandle (section)) section 170 src/unexaix.c struct scnhdr section[MAX_SECTIONS]; section 219 src/unexaix.c struct scnhdr *s = §ion[scns]; section 283 src/unexaix.c off_t ptr = section[0].s_scnptr; section 288 src/unexaix.c struct scnhdr *s = §ion[scns]; section 322 src/unexaix.c struct scnhdr *s = §ion[scns]; section 358 src/unexaix.c struct scnhdr *s = §ion[scns]; section 644 src/unexmacosx.c struct section *sectp; section 651 src/unexmacosx.c sectp = (struct section *) (scp + 1); section 714 src/unexmacosx.c struct section *sectp = (struct section *) (scp + 1); section 748 src/unexmacosx.c struct section *sectp; section 753 src/unexmacosx.c sectp = (struct section *) (scp + 1); section 790 src/unexmacosx.c struct section *sectp; section 809 src/unexmacosx.c sectp = (struct section *) (scp + 1); section 838 src/unexmacosx.c if (!unexec_write (header_offset, sectp, sizeof (struct section))) section 846 src/unexmacosx.c if (!unexec_write (header_offset, sectp, sizeof (struct section))) section 871 src/unexmacosx.c if (!unexec_write (header_offset, sectp, sizeof (struct section))) section 892 src/unexmacosx.c if (!unexec_write (header_offset, sectp, sizeof (struct section))) section 911 src/unexmacosx.c if (!unexec_write (header_offset, sectp, sizeof (struct section))) section 922 src/unexmacosx.c header_offset += sizeof (struct section); section 118 src/unexw32.c PIMAGE_SECTION_HEADER section; section 121 src/unexw32.c section = IMAGE_FIRST_SECTION (nt_header); section 125 src/unexw32.c if (strcmp ((char *)section->Name, name) == 0) section 126 src/unexw32.c return section; section 127 src/unexw32.c section++; section 138 src/unexw32.c PIMAGE_SECTION_HEADER section; section 141 src/unexw32.c section = IMAGE_FIRST_SECTION (nt_header); section 145 src/unexw32.c if (offset >= section->PointerToRawData section 146 src/unexw32.c && offset < section->PointerToRawData + section->SizeOfRawData) section 147 src/unexw32.c return section; section 148 src/unexw32.c section++; section 191 src/unexw32.c #define RVA_TO_OFFSET(rva, section) \ section 192 src/unexw32.c ((section)->PointerToRawData + ((DWORD_PTR)(rva) - (section)->VirtualAddress)) section 194 src/unexw32.c #define RVA_TO_SECTION_OFFSET(rva, section) \ section 195 src/unexw32.c ((DWORD_PTR)(rva) - (section)->VirtualAddress) section 207 src/unexw32.c #define OFFSET_TO_RVA(offset, section) \ section 208 src/unexw32.c ((section)->VirtualAddress + ((DWORD_PTR)(offset) - (section)->PointerToRawData)) section 210 src/unexw32.c #define RVA_TO_PTR(var,section,filedata) \ section 211 src/unexw32.c ((unsigned char *)(RVA_TO_OFFSET (var,section) + (filedata).file_base)) section 371 src/unexw32.c PIMAGE_SECTION_HEADER section; section 430 src/unexw32.c section = IMAGE_FIRST_SECTION (nt_header); section 438 src/unexw32.c (DWORD_PTR) section - (DWORD_PTR) nt_header, be_verbose); section 440 src/unexw32.c COPY_CHUNK ("Copying section table...", section, section 441 src/unexw32.c nt_header->FileHeader.NumberOfSections * sizeof (*section), section 454 src/unexw32.c sprintf (msg, "Copying raw data for %.8s...", section->Name); section 466 src/unexw32.c (msg, OFFSET_TO_PTR (section->PointerToRawData, p_infile), section 467 src/unexw32.c section->SizeOfRawData, be_verbose); section 472 src/unexw32.c if (section == data_section) section 480 src/unexw32.c if (section == bss_section) section 496 src/unexw32.c if (section == bss_section_static) section 516 src/unexw32.c section++; section 522 src/unexw32.c section--; section 523 src/unexw32.c while (section->PointerToRawData == 0); section 524 src/unexw32.c offset = ROUND_UP (section->PointerToRawData + section->SizeOfRawData, section 535 src/unexw32.c section = IMAGE_FIRST_SECTION (nt_header); section 567 src/unexw32.c section = rva_to_section (debug_dir.VirtualAddress, dst_nt_header); section 568 src/unexw32.c if (section) section 571 src/unexw32.c (RVA_TO_OFFSET (debug_dir.VirtualAddress, section) + p_outfile->file_base); section 68 src/w32proc.c #define RVA_TO_PTR(var,section,filedata) \ section 69 src/w32proc.c ((void *)((section)->PointerToRawData \ section 70 src/w32proc.c + ((DWORD_PTR)(var) - (section)->VirtualAddress) \ section 1681 src/w32proc.c PIMAGE_SECTION_HEADER section; section 1684 src/w32proc.c section = IMAGE_FIRST_SECTION (nt_header); section 1694 src/w32proc.c DWORD_PTR real_size = max (section->SizeOfRawData, section 1695 src/w32proc.c section->Misc.VirtualSize); section 1696 src/w32proc.c if (rva >= section->VirtualAddress section 1697 src/w32proc.c && rva < section->VirtualAddress + real_size) section 1698 src/w32proc.c return section; section 1699 src/w32proc.c section++; section 1822 src/w32proc.c IMAGE_SECTION_HEADER *section section 1824 src/w32proc.c if (!section) section 1828 src/w32proc.c RVA_TO_PTR (import_dir.VirtualAddress, section, section 1833 src/w32proc.c section = rva_to_section (imports->Name, nt_header); section 1834 src/w32proc.c if (!section) section 1837 src/w32proc.c char * dllname = RVA_TO_PTR (imports->Name, section, section 45 test/manual/etags/c-src/c.c char stack[10000] __attribute__ ((section ("STACK"))) = { 0 }; section 60 test/manual/etags/c-src/c.c extern void foobar (void) __attribute__ ((section ("bar")));