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
92998902
Commit
92998902
authored
Jun 07, 2000
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jun 07, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed size of pe_header on machines with non-4K pages.
parent
e82e7d96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
build.c
tools/build.c
+13
-2
No files found.
tools/build.c
View file @
92998902
...
@@ -1229,6 +1229,17 @@ static int BuildSpec32File( FILE *outfile )
...
@@ -1229,6 +1229,17 @@ static int BuildSpec32File( FILE *outfile )
int
i
,
fwd_size
=
0
,
have_regs
=
FALSE
;
int
i
,
fwd_size
=
0
,
have_regs
=
FALSE
;
int
nr_exports
;
int
nr_exports
;
const
char
*
init_func
;
const
char
*
init_func
;
DWORD
page_size
;
#ifdef HAVE_GETPAGESIZE
page_size
=
getpagesize
();
#else
# ifdef __svr4__
page_size
=
sysconf
(
_SC_PAGESIZE
);
# else
# error Cannot get the page size on this platform
# endif
#endif
AssignOrdinals
();
AssignOrdinals
();
nr_exports
=
Base
<=
Limit
?
Limit
-
Base
+
1
:
0
;
nr_exports
=
Base
<=
Limit
?
Limit
-
Base
+
1
:
0
;
...
@@ -1241,8 +1252,8 @@ static int BuildSpec32File( FILE *outfile )
...
@@ -1241,8 +1252,8 @@ static int BuildSpec32File( FILE *outfile )
fprintf
(
outfile
,
"extern char pe_header[];
\n
"
);
fprintf
(
outfile
,
"extern char pe_header[];
\n
"
);
fprintf
(
outfile
,
"asm(
\"
.section .text
\\
n
\\
t
\"\n
"
);
fprintf
(
outfile
,
"asm(
\"
.section .text
\\
n
\\
t
\"\n
"
);
fprintf
(
outfile
,
"
\"
.align
4096
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"
.align
%d
\\
n
\"\n
"
,
page_size
);
fprintf
(
outfile
,
"
\"
pe_header:
\\
t.fill
4096,1,0
\\
n
\\
t
\"
);
\n
"
);
fprintf
(
outfile
,
"
\"
pe_header:
\\
t.fill
%d,1,0
\\
n
\\
t
\"
);
\n
"
,
page_size
);
fprintf
(
outfile
,
"static const char dllname[] =
\"
%s
\"
;
\n
"
,
DLLName
);
fprintf
(
outfile
,
"static const char dllname[] =
\"
%s
\"
;
\n
"
,
DLLName
);
...
...
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