Skip to content

Commit cafeed1

Browse files
committed
Disable -H:RelativeCodePointers restriction for layered images.
1 parent b7bbc1d commit cafeed1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateOptions.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import com.oracle.svm.core.config.ConfigurationValues;
5454
import com.oracle.svm.core.graal.RuntimeCompilation;
5555
import com.oracle.svm.core.heap.ReferenceHandler;
56-
import com.oracle.svm.core.imagelayer.ImageLayerBuildingSupport;
5756
import com.oracle.svm.core.jdk.VectorAPIEnabled;
5857
import com.oracle.svm.core.option.APIOption;
5958
import com.oracle.svm.core.option.APIOptionGroup;
@@ -1537,13 +1536,6 @@ private static void validateRelativeCodePointers(HostedOptionKey<Boolean> option
15371536

15381537
UserError.guarantee(Platform.includedIn(PLATFORM_JNI.class) || Platform.includedIn(NATIVE_ONLY.class), "%s is supported only with hardware target platforms.", enabledOption);
15391538

1540-
/*
1541-
* GR-59707: Dispatch tables must potentially be patched at runtime still. Method
1542-
* offsets for dispatch need to be passed on between layer builds rather than using
1543-
* symbol names.
1544-
*/
1545-
UserError.guarantee(!ImageLayerBuildingSupport.buildingImageLayer(), "%s is currently not supported with layered images.", enabledOption);
1546-
15471539
// The concept of a code base would need to be introduced in the LLVM backend first.
15481540
UserError.guarantee(!useLLVMBackend(), "%s is currently not supported with the LLVM backend.", enabledOption);
15491541

0 commit comments

Comments
 (0)