Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0216c404
Commit
0216c404
authored
Apr 12, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preloader: Workaround for broken no-exec protections.
Add an executable page at the top of the address space to defeat broken no-exec protections that play with the code selector limit.
parent
e55c44c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
preloader.c
loader/preloader.c
+4
-0
No files found.
loader/preloader.c
View file @
0216c404
...
...
@@ -949,6 +949,10 @@ void* wld_start( void **stack )
wld_mmap
(
preload_info
[
i
].
addr
,
preload_info
[
i
].
size
,
PROT_NONE
,
MAP_FIXED
|
MAP_PRIVATE
|
MAP_ANON
|
MAP_NORESERVE
,
-
1
,
0
);
/* add an executable page at the top of the address space to defeat
* broken no-exec protections that play with the code selector limit */
wld_mprotect
(
(
char
*
)
0x80000000
-
page_size
,
page_size
,
PROT_EXEC
|
PROT_READ
);
/* load the main binary */
map_so_lib
(
argv
[
1
],
&
main_binary_map
);
...
...
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