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
8aba0897
Commit
8aba0897
authored
Sep 14, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output constant strings in a more appropriate section than .text.
parent
ec9024ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
build.h
tools/winebuild/build.h
+1
-0
spec32.c
tools/winebuild/spec32.c
+7
-8
utils.c
tools/winebuild/utils.c
+9
-0
No files found.
tools/winebuild/build.h
View file @
8aba0897
...
...
@@ -188,6 +188,7 @@ extern const char *func_size( const char *func );
extern
const
char
*
get_asm_ptr_keyword
(
void
);
extern
const
char
*
get_asm_string_keyword
(
void
);
extern
const
char
*
get_asm_short_keyword
(
void
);
extern
const
char
*
get_asm_string_section
(
void
);
extern
void
add_import_dll
(
const
char
*
name
,
const
char
*
filename
);
extern
void
add_delayed_import
(
const
char
*
name
);
...
...
tools/winebuild/spec32.c
View file @
8aba0897
...
...
@@ -314,6 +314,7 @@ static void output_stubs( FILE *outfile, DLLSPEC *spec )
if
(
pos
)
{
fprintf
(
outfile
,
"
\"\\
t%s
\\
n
\"\n
"
,
get_asm_string_section
()
);
fprintf
(
outfile
,
"
\"
.L__wine_stub_strings:
\\
n
\"\n
"
);
for
(
i
=
0
;
i
<
spec
->
nb_entry_points
;
i
++
)
{
...
...
@@ -453,19 +454,11 @@ void BuildSpec32File( FILE *outfile, DLLSPEC *spec )
if
(
target_platform
==
PLATFORM_APPLE
)
fprintf
(
outfile
,
"static char _end[4];
\n
"
);
else
fprintf
(
outfile
,
"extern char _end[];
\n
"
);
fprintf
(
outfile
,
"const char __wine_spec_file_name[] =
\"
%s
\"
;
\n
"
,
spec
->
file_name
);
/* Output the resources */
resources_size
=
output_resources
(
outfile
,
spec
);
/* Output the entry point function */
fprintf
(
outfile
,
"extern void %s();
\n\n
"
,
spec
->
init_func
);
/* Output the NT header */
fprintf
(
outfile
,
"#ifndef __GNUC__
\n
"
);
...
...
@@ -564,6 +557,12 @@ void BuildSpec32File( FILE *outfile, DLLSPEC *spec )
fprintf
(
outfile
,
"
\"\\
t.long 0,0
\\
n
\"\n
"
);
/* DataDirectory[15] */
fprintf
(
outfile
,
");
\n
"
);
fprintf
(
outfile
,
"asm(
\"
%s
\\
n
\"\n
"
,
get_asm_string_section
()
);
fprintf
(
outfile
,
"
\"\\
t.globl %s
\\
n
\"\n
"
,
asm_name
(
"__wine_spec_file_name"
)
);
fprintf
(
outfile
,
"
\"
%s:
\\
n
\"\n
"
,
asm_name
(
"__wine_spec_file_name"
));
fprintf
(
outfile
,
"
\"\\
t%s
\\\"
%s
\\\"\\
n
\"\n
"
,
get_asm_string_keyword
(),
spec
->
file_name
);
fprintf
(
outfile
,
");
\n
"
);
output_stubs
(
outfile
,
spec
);
output_exports
(
outfile
,
spec
);
output_imports
(
outfile
,
spec
);
...
...
tools/winebuild/utils.c
View file @
8aba0897
...
...
@@ -501,3 +501,12 @@ const char *get_asm_short_keyword(void)
default:
return
".short"
;
}
}
const
char
*
get_asm_string_section
(
void
)
{
switch
(
target_platform
)
{
case
PLATFORM_APPLE
:
return
".cstring"
;
default:
return
".section .rodata"
;
}
}
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