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
b2585d98
Commit
b2585d98
authored
Mar 13, 2019
by
Huw Davies
Committed by
Alexandre Julliard
Mar 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Use the correct section label on macOS.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f34f1382
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
build.h
tools/winebuild/build.h
+2
-0
res32.c
tools/winebuild/res32.c
+1
-1
spec32.c
tools/winebuild/spec32.c
+1
-1
utils.c
tools/winebuild/utils.c
+20
-0
No files found.
tools/winebuild/build.h
View file @
b2585d98
...
...
@@ -281,7 +281,9 @@ extern const char *func_declaration( const char *func );
extern
const
char
*
asm_globl
(
const
char
*
func
);
extern
const
char
*
get_asm_ptr_keyword
(
void
);
extern
const
char
*
get_asm_string_keyword
(
void
);
extern
const
char
*
get_asm_export_section
(
void
);
extern
const
char
*
get_asm_rodata_section
(
void
);
extern
const
char
*
get_asm_rsrc_section
(
void
);
extern
const
char
*
get_asm_string_section
(
void
);
extern
void
output_function_size
(
const
char
*
name
);
extern
void
output_gnu_stack_note
(
void
);
...
...
tools/winebuild/res32.c
View file @
b2585d98
...
...
@@ -441,7 +441,7 @@ void output_resources( DLLSPEC *spec )
/* output the resource directories */
output
(
"
\n
/* resources */
\n\n
"
);
output
(
"
\t
.section %s
\n
"
,
target_platform
==
PLATFORM_WINDOWS
?
".rsrc"
:
".data"
);
output
(
"
\t
%s
\n
"
,
get_asm_rsrc_section
()
);
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
get_ptr_size
())
);
output
(
".L__wine_spec_resources:
\n
"
);
...
...
tools/winebuild/spec32.c
View file @
b2585d98
...
...
@@ -384,7 +384,7 @@ void output_exports( DLLSPEC *spec )
if
(
!
nr_exports
)
return
;
output
(
"
\n
/* export table */
\n\n
"
);
output
(
"
\t
.section %s
\n
"
,
target_platform
==
PLATFORM_WINDOWS
?
".edata"
:
".data"
);
output
(
"
\t
%s
\n
"
,
get_asm_export_section
()
);
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
4
)
);
output
(
".L__wine_spec_exports:
\n
"
);
...
...
tools/winebuild/utils.c
View file @
b2585d98
...
...
@@ -1201,6 +1201,16 @@ const char *get_asm_string_keyword(void)
}
}
const
char
*
get_asm_export_section
(
void
)
{
switch
(
target_platform
)
{
case
PLATFORM_APPLE
:
return
".data"
;
case
PLATFORM_WINDOWS
:
return
".section .edata"
;
default:
return
".section .data"
;
}
}
const
char
*
get_asm_rodata_section
(
void
)
{
switch
(
target_platform
)
...
...
@@ -1210,6 +1220,16 @@ const char *get_asm_rodata_section(void)
}
}
const
char
*
get_asm_rsrc_section
(
void
)
{
switch
(
target_platform
)
{
case
PLATFORM_APPLE
:
return
".data"
;
case
PLATFORM_WINDOWS
:
return
".section .rsrc"
;
default:
return
".section .data"
;
}
}
const
char
*
get_asm_string_section
(
void
)
{
switch
(
target_platform
)
...
...
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