Commit 43c8c1c4 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

linker: Move mmapForLinker declaration into LinkerInternals.h

Test Plan: Validate

Reviewers: simonmar, erikd, austin

Reviewed By: simonmar

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2645
parent abfa3196
......@@ -12,6 +12,8 @@
#include "Rts.h"
#include "Hash.h"
#include "BeginPrivate.h"
/* See Linker.c Note [runtime-linker-phases] */
typedef enum {
OBJECT_LOADED,
......@@ -184,6 +186,8 @@ void exitLinker( void );
void freeObjectCode (ObjectCode *oc);
void *mmapForLinker (size_t bytes, uint32_t flags, int fd, int offset);
#if defined(mingw32_HOST_OS)
typedef unsigned char UChar;
......@@ -323,6 +327,6 @@ getting, here. */
#define USE_CONTIGUOUS_MMAP 0
#endif
#include "EndPrivate.h"
#endif /* LINKERINTERNALS_H */
......@@ -9,6 +9,7 @@
#include "Rts.h"
#include "sm/OSMem.h"
#include "linker/M32Alloc.h"
#include "LinkerInternals.h"
#include <inttypes.h>
#include <stdlib.h>
......
......@@ -40,8 +40,6 @@ void m32_free(void *addr, size_t size) M32_NO_RETURN;
void * m32_alloc(size_t size, size_t alignment) M32_NO_RETURN;
void * mmapForLinker (size_t bytes, uint32_t flags, int fd, int offset);
#include "EndPrivate.h"
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment