hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/CallSiteRelocationSymbol.java
equal
deleted
inserted
replaced
57 ByteContainer container = binaryContainer.getExtLinkageGOTContainer(); |
57 ByteContainer container = binaryContainer.getExtLinkageGOTContainer(); |
58 Symbol symbol = container.createGotSymbol(symbolOffset, symbolName); |
58 Symbol symbol = container.createGotSymbol(symbolOffset, symbolName); |
59 addExternalPltToGotRelocation(binaryContainer, symbol, relocationOffset); |
59 addExternalPltToGotRelocation(binaryContainer, symbol, relocationOffset); |
60 } |
60 } |
61 |
61 |
62 protected static void addMetaspaceGotRelocation(BinaryContainer binaryContainer, String symbolName, int symbolOffset, int relocationOffset) { |
|
63 ByteContainer container = binaryContainer.getMetaspaceGotContainer(); |
|
64 Symbol symbol = container.createGotSymbol(symbolOffset, symbolName); |
|
65 addExternalPltToGotRelocation(binaryContainer, symbol, relocationOffset); |
|
66 } |
|
67 |
|
68 /** |
62 /** |
69 * Add an {@link RelocType#EXTERNAL_GOT_TO_PLT} relocation to the |
63 * Add an {@link RelocType#EXTERNAL_GOT_TO_PLT} relocation to the |
70 * {@link BinaryContainer#getExtLinkageGOTContainer()}. |
64 * {@link BinaryContainer#getExtLinkageGOTContainer()}. |
71 */ |
65 */ |
72 private static void addExternalGotToPltRelocation(BinaryContainer binaryContainer, Symbol symbol, int relocationOffset) { |
66 private static void addExternalGotToPltRelocation(BinaryContainer binaryContainer, Symbol symbol, int relocationOffset) { |