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
4b59142f
Commit
4b59142f
authored
Dec 07, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Avoid quoting section names.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54060
parent
0da7ad35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
import.c
tools/winebuild/import.c
+13
-13
No files found.
tools/winebuild/import.c
View file @
4b59142f
...
@@ -1764,20 +1764,20 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
...
@@ -1764,20 +1764,20 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
output
(
"
\t
.long 0
\n
"
);
/* UnloadInformationTableRVA */
output
(
"
\t
.long 0
\n
"
);
/* UnloadInformationTableRVA */
output
(
"
\t
.long 0
\n
"
);
/* TimeDateStamp */
output
(
"
\t
.long 0
\n
"
);
/* TimeDateStamp */
output
(
"
\n\t
.section
\"
.idata$5
\"
\n
"
);
output
(
"
\n\t
.section
.idata$5
\n
"
);
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* FirstThunk tail */
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* FirstThunk tail */
output
(
".L__wine_import_addrs:
\n
"
);
output
(
".L__wine_import_addrs:
\n
"
);
output
(
"
\n\t
.section
\"
.idata$4
\"
\n
"
);
output
(
"
\n\t
.section
.idata$4
\n
"
);
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* OriginalFirstThunk tail */
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* OriginalFirstThunk tail */
output
(
".L__wine_import_names:
\n
"
);
output
(
".L__wine_import_names:
\n
"
);
/* required to avoid internal linker errors with some binutils versions */
/* required to avoid internal linker errors with some binutils versions */
output
(
"
\n\t
.section
\"
.idata$2
\"
\n
"
);
output
(
"
\n\t
.section
.idata$2
\n
"
);
}
}
else
else
{
{
output
(
"
\n\t
.section
\"
.idata$2
\"
\n
"
);
output
(
"
\n\t
.section
.idata$2
\n
"
);
output
(
"%s
\n
"
,
asm_globl
(
import_desc
)
);
output
(
"%s
\n
"
,
asm_globl
(
import_desc
)
);
output_rva
(
".L__wine_import_names"
);
/* OriginalFirstThunk */
output_rva
(
".L__wine_import_names"
);
/* OriginalFirstThunk */
output
(
"
\t
.long 0
\n
"
);
/* TimeDateStamp */
output
(
"
\t
.long 0
\n
"
);
/* TimeDateStamp */
...
@@ -1785,10 +1785,10 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
...
@@ -1785,10 +1785,10 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
output_rva
(
"%s"
,
asm_name
(
import_name
)
);
/* Name */
output_rva
(
"%s"
,
asm_name
(
import_name
)
);
/* Name */
output_rva
(
".L__wine_import_addrs"
);
/* FirstThunk */
output_rva
(
".L__wine_import_addrs"
);
/* FirstThunk */
output
(
"
\n\t
.section
\"
.idata$4
\"
\n
"
);
output
(
"
\n\t
.section
.idata$4
\n
"
);
output
(
".L__wine_import_names:
\n
"
);
/* OriginalFirstThunk head */
output
(
".L__wine_import_names:
\n
"
);
/* OriginalFirstThunk head */
output
(
"
\n\t
.section
\"
.idata$5
\"
\n
"
);
output
(
"
\n\t
.section
.idata$5
\n
"
);
output
(
".L__wine_import_addrs:
\n
"
);
/* FirstThunk head */
output
(
".L__wine_import_addrs:
\n
"
);
/* FirstThunk head */
}
}
...
@@ -1799,11 +1799,11 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
...
@@ -1799,11 +1799,11 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
new_output_as_file
();
new_output_as_file
();
output
(
"
\n\t
.section
\"
.idata$4
\"
\n
"
);
output
(
"
\n\t
.section
.idata$4
\n
"
);
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* OriginalFirstThunk tail */
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* OriginalFirstThunk tail */
output
(
"
\n\t
.section
\"
.idata$5
\"
\n
"
);
output
(
"
\n\t
.section
.idata$5
\n
"
);
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* FirstThunk tail */
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
/* FirstThunk tail */
output
(
"
\n\t
.section
\"
.idata$7
\"
\n
"
);
output
(
"
\n\t
.section
.idata$7
\n
"
);
output
(
"%s
\n
"
,
asm_globl
(
import_name
)
);
output
(
"%s
\n
"
,
asm_globl
(
import_name
)
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
spec
->
file_name
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
spec
->
file_name
);
...
@@ -1891,10 +1891,10 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
...
@@ -1891,10 +1891,10 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
break
;
break
;
}
}
output
(
"
\n\t
.section
\"
.idata$4
\"
\n
"
);
output
(
"
\n\t
.section
.idata$4
\n
"
);
output_thunk_rva
(
by_name
?
-
1
:
odp
->
ordinal
,
".L__wine_import_name"
);
output_thunk_rva
(
by_name
?
-
1
:
odp
->
ordinal
,
".L__wine_import_name"
);
output
(
"
\n\t
.section
\"
.idata$5
\"
\n
"
);
output
(
"
\n\t
.section
.idata$5
\n
"
);
output
(
"%s
\n
"
,
asm_globl
(
imp_name
)
);
output
(
"%s
\n
"
,
asm_globl
(
imp_name
)
);
if
(
is_delay
)
if
(
is_delay
)
output
(
"
\t
%s .L__wine_delay_import
\n
"
,
get_asm_ptr_keyword
()
);
output
(
"
\t
%s .L__wine_delay_import
\n
"
,
get_asm_ptr_keyword
()
);
...
@@ -1903,14 +1903,14 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
...
@@ -1903,14 +1903,14 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
if
(
by_name
)
if
(
by_name
)
{
{
output
(
"
\n\t
.section
\"
.idata$6
\"
\n
"
);
output
(
"
\n\t
.section
.idata$6
\n
"
);
output
(
".L__wine_import_name:
\n
"
);
output
(
".L__wine_import_name:
\n
"
);
output
(
"
\t
.short %d
\n
"
,
odp
->
hint
);
output
(
"
\t
.short %d
\n
"
,
odp
->
hint
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
name
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
name
);
}
}
/* reference head object to always pull its sections */
/* reference head object to always pull its sections */
output
(
"
\n\t
.section
\"
.idata$7
\"
\n
"
);
output
(
"
\n\t
.section
.idata$7
\n
"
);
output_rva
(
"%s"
,
asm_name
(
import_desc
)
);
output_rva
(
"%s"
,
asm_name
(
import_desc
)
);
free
(
imp_name
);
free
(
imp_name
);
...
...
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