Skip to content

Commit 119d62a

Browse files
committed
Add PLT/GOT implementation for Windows.
1 parent 2b4b3c5 commit 119d62a

File tree

1 file changed

+13
-0
lines changed
  • substratevm/src/com.oracle.svm.core.windows/src/com/oracle/svm/core/windows/headers

1 file changed

+13
-0
lines changed

substratevm/src/com.oracle.svm.core.windows/src/com/oracle/svm/core/windows/headers/MemoryAPI.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,24 @@ public class MemoryAPI {
6969
@CConstant
7070
public static native int PAGE_WRITECOPY();
7171

72+
@CConstant
73+
public static native int FILE_MAP_READ();
74+
75+
@CConstant
76+
public static native int FILE_MAP_WRITE();
77+
7278
/** Creates or opens a named or unnamed file mapping object for a specified file. */
7379
@CFunction(transition = NO_TRANSITION)
7480
public static native HANDLE CreateFileMappingW(HANDLE hFile, PointerBase lpFileMappingAttributes, int flProtect,
7581
int dwMaximumSizeHigh, int dwMaximumSizeLow, WCharPointer lpName);
7682

83+
/**
84+
* Maps a view of a file mapping into the address space of a calling process.
85+
*/
86+
@CFunction(transition = NO_TRANSITION)
87+
public static native Pointer MapViewOfFile(HANDLE hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh,
88+
int dwFileOffsetLow, UnsignedWord dwNumberOfBytesToMap);
89+
7790
/** Unmaps a mapped view of a file from the calling process's address space. */
7891
@CFunction(transition = NO_TRANSITION)
7992
public static native int UnmapViewOfFile(PointerBase lpBaseAddress);

0 commit comments

Comments
 (0)