This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes General Computing and the fly likes PE file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » General Computing
Reply Bookmark "PE file" Watch "PE file" New topic
Author

PE file

abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 602
A PE file consists of a number of headers and sections that tell the dynamic linker how to map the file into memory

What are headers and sections?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16487
    
    2

I don't know anything about PE files, never heard of them. However a "header" is some data that appears at or near the beginning of a file. A "section" is a part of a file which can be treated as a unit (sort of like the "sections" you get when you peel an orange).
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3065
    
    1

Well, if I'm not mistaken, PE is the file format for windows NT executables. Sections are parts of the file that describe either code or different types of data. Sections have different permissions or attributes associated with them.
abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 602


May you explain about "Sections" and "Image info" in this image?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5575

Looks like you are looking at word.exe. The Image Info describes the header for the EXE file - if you open word.exe with a hex editor you can find the same information in the first X bytes (I used to know what X was, 128? 256? but don't recall). And EXE (and a DLL) file are divided up into various sections into which different things are placed. Things such as the opcodes, text strings and images used by the program.

Go to the MSDN web site, there should be documentation there on how an EXE/DLL file is laid out.


JBoss In Action
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: PE file
 
Similar Threads
How add JLabels as headers for JPopupMenu's menuitem sections?
Help in Put and Head methods.
Cleared SCWCD 2 hours ago
Win32 exe wrappers for .jar or .class files
How to make this packages example program work