Mercurial > hg > truffle
annotate agent/src/share/classes/sun/jvm/hotspot/debugger/posix/elf/ELFSectionHeader.java @ 1913:3b2dea75431e
6984311: JSR 292 needs optional bootstrap method parameters
Summary: Allow CONSTANT_InvokeDynamic nodes to have any number of extra operands.
Reviewed-by: twisti
author | jrose |
---|---|
date | Sat, 30 Oct 2010 13:08:23 -0700 |
parents | c18cbe5936b8 |
children |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
2 * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. |
0 | 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
25 package sun.jvm.hotspot.debugger.posix.elf; | |
26 | |
27 public interface ELFSectionHeader { | |
28 /** Undefined section header index. */ | |
29 public static final int NDX_UNDEFINED = 0; | |
30 /** Lower bound section header index. */ | |
31 public static final int NDX_LORESERVE = 0xff00; | |
32 /** Lower bound section header index reserved for processor specific | |
33 * semantics. */ | |
34 public static final int NDX_LOPROC = 0xff00; | |
35 /** Upper bound section header index reserved for processor specific | |
36 * semantics. */ | |
37 public static final int NDX_HIPROC = 0xff1f; | |
38 /** Absolute values for the corresponding reference. Symbols defined | |
39 * relative to section number NDX_ABS have absolute values and are not | |
40 * affected by relocation. */ | |
41 public static final int NDX_ABS = 0xfff1; | |
42 /** Symbols defined relative to this section are common symbols, such | |
43 * as FORTRAN, COMMON or unallocated C external variables. */ | |
44 public static final int NDX_COMMON = 0xfff2; | |
45 /** Upper bound section header index. */ | |
46 public static final int NDX_HIRESERVE = 0xffff; | |
47 | |
48 /** Section is inactive. */ | |
49 public static final int TYPE_NULL = 0; | |
50 /** Section holds information defined by the program. */ | |
51 public static final int TYPE_PROGBITS = 1; | |
52 /** Section holds symbol table information for link editing. It may also | |
53 * be used to store symbols for dynamic linking. */ | |
54 public static final int TYPE_SYMTBL = 2; | |
55 /** Section holds string table information. */ | |
56 public static final int TYPE_STRTBL = 3; | |
57 /** Section holds relocation entries with explicit addends. */ | |
58 public static final int TYPE_RELO_EXPLICIT = 4; | |
59 /** Section holds symbol hash table. */ | |
60 public static final int TYPE_HASH = 5; | |
61 /** Section holds information for dynamic linking. */ | |
62 public static final int TYPE_DYNAMIC = 6; | |
63 /** Section holds information that marks the file. */ | |
64 public static final int TYPE_NOTE = 7; | |
65 /** Section occupies no space but resembles TYPE_PROGBITS. */ | |
66 public static final int TYPE_NOBITS = 8; | |
67 /** Section holds relocation entries without explicit addends. */ | |
68 public static final int TYPE_RELO = 9; | |
69 /** Section is reserved but has unspecified semantics. */ | |
70 public static final int TYPE_SHLIB = 10; | |
71 /** Section holds a minimum set of dynamic linking symbols. */ | |
72 public static final int TYPE_DYNSYM = 11; | |
73 /** Lower bound section type that contains processor specific semantics. */ | |
74 public static final int TYPE_LOPROC = 0x70000000; | |
75 /** Upper bound section type that contains processor specific semantics. */ | |
76 public static final int TYPE_HIPROC = 0x7fffffff; | |
77 /** Lower bound of the range of indexes reserved for application | |
78 * programs. */ | |
79 public static final int TYPE_LOUSER = 0x80000000; | |
80 /** Upper bound of the range of indexes reserved for application | |
81 * programs. */ | |
82 public static final int TYPE_HIUSER = 0xffffffff; | |
83 | |
84 /** Flag informing that this section contains data that should be writable | |
85 * during process execution. */ | |
86 public static final int FLAG_WRITE = 0x1; | |
87 /** Flag informing that section occupies memory during process | |
88 * execution. */ | |
89 public static final int FLAG_ALLOC = 0x2; | |
90 /** Flag informaing that section contains executable machine | |
91 * instructions. */ | |
92 public static final int FLAG_EXEC_INSTR = 0x4; | |
93 /** Flag informing that all the bits in the mask are reserved for processor | |
94 * specific semantics. */ | |
95 public static final int FLAG_MASK = 0xf0000000; | |
96 | |
97 /** Section header name identifying the section as a string table. */ | |
98 public static final String STRING_TABLE_NAME = ".strtab"; | |
99 /** Section header name identifying the section as a dynamic string | |
100 * table. */ | |
101 public static final String DYNAMIC_STRING_TABLE_NAME = ".dynstr"; | |
102 /** Returns the type of section header. */ | |
103 public int getType(); | |
104 /** Returns the number of symbols in this section or 0 if none. */ | |
105 public int getNumberOfSymbols(); | |
106 /** Returns the symbol at the specified index. The ELF symbol at index 0 | |
107 * is the undefined symbol. */ | |
108 public ELFSymbol getELFSymbol(int index); | |
109 /** Returns the string table for this section or null if one does not | |
110 * exist. */ | |
111 public ELFStringTable getStringTable(); | |
112 /** Returns the hash table for this section or null if one does not | |
113 * exist. NOTE: currently the ELFHashTable does not work and this method | |
114 * will always return null. */ | |
115 public ELFHashTable getHashTable(); | |
116 public int getLink(); | |
117 /** Returns the name of the section or null if the section has no name. */ | |
118 public String getName(); | |
119 /** Returns the offset in bytes to the beginning of the section. */ | |
120 public int getOffset(); | |
121 } |