Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
243c3042
Commit
243c3042
authored
Apr 04, 2011
by
Erik de Castro Lopo
Committed by
Ian Lynagh
Apr 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiling on linux-powerpc.
parent
a52ff761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
rts/Linker.c
rts/Linker.c
+11
-7
No files found.
rts/Linker.c
View file @
243c3042
...
...
@@ -70,12 +70,12 @@
#include <sys/wait.h>
#endif
#if
defined(linux_HOST_OS ) || defined(freebsd_HOST_OS) ||
\
defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS
) || \
defined(openbsd_HOST_OS
) || \
( defined(darwin_HOST_OS ) && !defined(powerpc_HOST_ARCH)
) || \
defined(kfreebsdgnu_HOST_OS
)
/* Don't use mmap on powerpc
-apple-darwin
as mmap doesn't support
#if
!defined(powerpc_HOST_ARCH) &&
\
( defined(linux_HOST_OS ) || defined(freebsd_HOST_OS
) || \
defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS
) || \
defined(openbsd_HOST_OS ) || defined(darwin_HOST_OS
) || \
defined(kfreebsdgnu_HOST_OS)
)
/* Don't use mmap on powerpc
_HOST_ARCH
as mmap doesn't support
* reallocating but we need to allocate jump islands just after each
* object images. Otherwise relative branches to jump islands can fail
* due to 24-bits displacement overflow.
...
...
@@ -2572,7 +2572,11 @@ static void
ocFlushInstructionCache
(
ObjectCode
*
oc
)
{
/* The main object code */
ocFlushInstructionCacheFrom
(
oc
->
image
+
oc
->
misalignment
,
oc
->
fileSize
);
ocFlushInstructionCacheFrom
(
oc
->
image
#ifdef darwin_HOST_OS
+
oc
->
misalignment
#endif
,
oc
->
fileSize
);
/* Jump Islands */
ocFlushInstructionCacheFrom
(
oc
->
symbol_extras
,
sizeof
(
SymbolExtra
)
*
oc
->
n_symbol_extras
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment