0
|
1 /*
|
|
2 * Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 *
|
|
5 * This code is free software; you can redistribute it and/or modify it
|
|
6 * under the terms of the GNU General Public License version 2 only, as
|
|
7 * published by the Free Software Foundation.
|
|
8 *
|
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 * version 2 for more details (a copy is included in the LICENSE file that
|
|
13 * accompanied this code).
|
|
14 *
|
|
15 * You should have received a copy of the GNU General Public License version
|
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 *
|
|
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
20 * CA 95054 USA or visit www.sun.com if you need additional information or
|
|
21 * have any questions.
|
|
22 *
|
|
23 */
|
|
24
|
|
25 package sun.jvm.hotspot.debugger.win32.coff;
|
|
26
|
|
27 /** Models the information stored in the standard fields portion of
|
|
28 the optional header of a Portable Executable file. (Some of the
|
|
29 descriptions are taken directly from Microsoft's documentation and
|
|
30 are copyrighted by Microsoft.) */
|
|
31
|
|
32 public interface OptionalHeaderStandardFields {
|
|
33 public byte getMajorLinkerVersion();
|
|
34 public byte getMinorLinkerVersion();
|
|
35
|
|
36 /** Size of the code (text) section, or the sum of all code sections
|
|
37 if there are multiple sections. */
|
|
38 public int getSizeOfCode();
|
|
39
|
|
40 /** Size of the initialized data section, or the sum of all such
|
|
41 sections if there are multiple data sections. */
|
|
42 public int getSizeOfInitializedData();
|
|
43
|
|
44 /** Size of the uninitialized data section (BSS), or the sum of all
|
|
45 such sections if there are multiple BSS sections. */
|
|
46 public int getSizeOfUninitializedData();
|
|
47
|
|
48 /** Address of entry point, relative to image base, when executable
|
|
49 file is loaded into memory. For program images, this is the
|
|
50 starting address. For device drivers, this is the address of the
|
|
51 initialization function. An entry point is optional for DLLs.
|
|
52 When none is present this field should be 0. */
|
|
53 public int getAddressOfEntryPoint();
|
|
54
|
|
55 /** Address, relative to image base, of beginning of code section,
|
|
56 when loaded into memory. */
|
|
57 public int getBaseOfCode();
|
|
58
|
|
59 /** Onle present in PE32 files; absent in PE32+ files. Address,
|
|
60 relative to image base, of beginning of data section, when
|
|
61 loaded into memory. */
|
|
62 public int getBaseOfData() throws COFFException;
|
|
63 }
|