Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
124eaf80
Commit
124eaf80
authored
Aug 14, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Builtin modules must be aligned on 64K boundary.
parent
94fa372b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
loader.c
library/loader.c
+3
-12
spec32.c
tools/winebuild/spec32.c
+1
-1
No files found.
library/loader.c
View file @
124eaf80
...
@@ -220,18 +220,9 @@ static void *map_dll( const IMAGE_NT_HEADERS *nt_descr )
...
@@ -220,18 +220,9 @@ static void *map_dll( const IMAGE_NT_HEADERS *nt_descr )
assert
(
size
<=
page_size
);
assert
(
size
<=
page_size
);
if
(
nt_descr
->
OptionalHeader
.
ImageBase
)
/* module address must be aligned on 64K boundary */
{
addr
=
(
BYTE
*
)((
nt_descr
->
OptionalHeader
.
ImageBase
+
0xffff
)
&
~
0xffff
);
addr
=
wine_anon_mmap
(
(
void
*
)
nt_descr
->
OptionalHeader
.
ImageBase
,
if
(
wine_anon_mmap
(
addr
,
page_size
,
PROT_READ
|
PROT_WRITE
,
MAP_FIXED
)
!=
addr
)
return
NULL
;
page_size
,
PROT_READ
|
PROT_WRITE
,
MAP_FIXED
);
if
(
addr
!=
(
BYTE
*
)
nt_descr
->
OptionalHeader
.
ImageBase
)
return
NULL
;
}
else
{
/* this will leak memory; but it should never happen */
addr
=
wine_anon_mmap
(
NULL
,
page_size
,
PROT_READ
|
PROT_WRITE
,
0
);
if
(
addr
==
(
BYTE
*
)
-
1
)
return
NULL
;
}
dos
=
(
IMAGE_DOS_HEADER
*
)
addr
;
dos
=
(
IMAGE_DOS_HEADER
*
)
addr
;
nt
=
(
IMAGE_NT_HEADERS
*
)(
dos
+
1
);
nt
=
(
IMAGE_NT_HEADERS
*
)(
dos
+
1
);
...
...
tools/winebuild/spec32.c
View file @
124eaf80
...
@@ -550,7 +550,7 @@ void BuildSpec32File( FILE *outfile )
...
@@ -550,7 +550,7 @@ void BuildSpec32File( FILE *outfile )
fprintf
(
outfile
,
"#endif
\n
"
);
fprintf
(
outfile
,
"#endif
\n
"
);
fprintf
(
outfile
,
"asm(
\"
.section
\\\"
.text
\\\"\\
n
\\
t
\"\n
"
);
fprintf
(
outfile
,
"asm(
\"
.section
\\\"
.text
\\\"\\
n
\\
t
\"\n
"
);
fprintf
(
outfile
,
"
\"
.align %d
\\
n
\"\n
"
,
get_alignment
(
page_size
)
);
fprintf
(
outfile
,
"
\"
.align %d
\\
n
\"\n
"
,
get_alignment
(
page_size
)
);
fprintf
(
outfile
,
"
\"
"
__ASM_NAME
(
"pe_header"
)
":
\\
t.skip
%ld
\\
n
\\
t
\"
);
\n
"
,
page_size
);
fprintf
(
outfile
,
"
\"
"
__ASM_NAME
(
"pe_header"
)
":
\\
t.skip
65536
\\
n
\\
t
\"
);
\n
"
);
fprintf
(
outfile
,
"#ifndef __GNUC__
\n
"
);
fprintf
(
outfile
,
"#ifndef __GNUC__
\n
"
);
fprintf
(
outfile
,
"}
\n
"
);
fprintf
(
outfile
,
"}
\n
"
);
fprintf
(
outfile
,
"#endif
\n
"
);
fprintf
(
outfile
,
"#endif
\n
"
);
...
...
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