File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,6 @@ MAPmmapAndRecord(
108
108
#define MAP_ANON MAP_ANONYMOUS
109
109
#endif
110
110
111
- /* Some platforms like Haiku does not provide MAP_FILE */
112
- #ifndef MAP_FILE
113
- #define MAP_FILE 0
114
- #endif
115
-
116
111
void
117
112
FileMappingCleanupRoutine (
118
113
CPalThread *pThread,
@@ -2115,7 +2110,7 @@ void * MAPMapPEFile(HANDLE hFile, off_t offset)
2115
2110
#endif
2116
2111
SIZE_T reserveSize = 0 ;
2117
2112
bool forceOveralign = false ;
2118
- int readWriteFlags = MAP_FILE| MAP_PRIVATE|MAP_FIXED;
2113
+ int readWriteFlags = MAP_PRIVATE|MAP_FIXED;
2119
2114
int readOnlyFlags = readWriteFlags;
2120
2115
2121
2116
ENTRY (" MAPMapPEFile (hFile=%p offset=%zx)\n " , hFile, offset);
@@ -2322,7 +2317,7 @@ void * MAPMapPEFile(HANDLE hFile, off_t offset)
2322
2317
// If PAL_MAP_READONLY_PE_HUGE_PAGE_AS_SHARED is set to 1. map the readonly sections as shared
2323
2318
// which works well with the behavior of the hugetlbfs
2324
2319
if (mapAsShared != NULL && (strcmp (mapAsShared, " 1" ) == 0 ))
2325
- readOnlyFlags = MAP_FILE| MAP_SHARED|MAP_FIXED;
2320
+ readOnlyFlags = MAP_SHARED|MAP_FIXED;
2326
2321
}
2327
2322
2328
2323
// we have now reserved memory (potentially we got rebased). Walk the PE sections and map each part
You can’t perform that action at this time.
0 commit comments