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
e7730053
Commit
e7730053
authored
Jun 25, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jun 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Put the PE header into the text section on ARM.
parent
0595619e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
spec32.c
tools/winebuild/spec32.c
+8
-6
No files found.
tools/winebuild/spec32.c
View file @
e7730053
...
...
@@ -403,22 +403,24 @@ static void output_asm_constructor( const char *constructor )
}
else
{
output
(
"
\n\t
.section
\"
.init
\"
,
\"
ax
\"\n
"
);
switch
(
target_cpu
)
{
case
CPU_x86
:
case
CPU_x86_64
:
output
(
"
\n\t
.section
\"
.init
\"
,
\"
ax
\"\n
"
);
output
(
"
\t
call %s
\n
"
,
asm_name
(
constructor
)
);
break
;
case
CPU_SPARC
:
output
(
"
\n\t
.section
\"
.init
\"
,
\"
ax
\"\n
"
);
output
(
"
\t
call %s
\n
"
,
asm_name
(
constructor
)
);
output
(
"
\t
nop
\n
"
);
break
;
case
CPU_ARM
:
output
(
"
\n\t
.section
\"
.text
\"
,
\"
ax
\"\n
"
);
output
(
"
\t
blx %s
\n
"
,
asm_name
(
constructor
)
);
output
(
"
\t
.arm
\n
"
);
break
;
case
CPU_POWERPC
:
output
(
"
\n\t
.section
\"
.init
\"
,
\"
ax
\"\n
"
);
output
(
"
\t
bl %s
\n
"
,
asm_name
(
constructor
)
);
break
;
}
...
...
@@ -452,20 +454,20 @@ void output_module( DLLSPEC *spec )
output
(
"
\t
.skip %u
\n
"
,
65536
+
page_size
);
break
;
default:
output
(
"
\n\t
.section
\"
.init
\"
,
\"
ax
\"\n
"
);
switch
(
target_cpu
)
{
case
CPU_x86
:
case
CPU_x86_64
:
case
CPU_SPARC
:
output
(
"
\n\t
.section
\"
.init
\"
,
\"
ax
\"\n
"
);
output
(
"
\t
jmp 1f
\n
"
);
break
;
case
CPU_ARM
:
output
(
"
\n\t
.syntax unified
\n
"
);
output
(
"
\n\t
.thumb
\n
"
);
output
(
"
\t
b.w 1f
\n
"
);
output
(
"
\n\t
.section
\"
.text
\"
,
\"
ax
\"\n
"
);
output
(
"
\t
b 1f
\n
"
);
break
;
case
CPU_POWERPC
:
output
(
"
\n\t
.section
\"
.init
\"
,
\"
ax
\"\n
"
);
output
(
"
\t
b 1f
\n
"
);
break
;
}
...
...
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