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
cfaf0994
Commit
cfaf0994
authored
Sep 19, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Make the syscall thunks position-independent on ARM64.
parent
40c1c498
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
import.c
tools/winebuild/import.c
+4
-9
No files found.
tools/winebuild/import.c
View file @
cfaf0994
...
@@ -1484,8 +1484,11 @@ void output_syscalls( DLLSPEC *spec )
...
@@ -1484,8 +1484,11 @@ void output_syscalls( DLLSPEC *spec )
output_seh
(
".seh_endprologue"
);
output_seh
(
".seh_endprologue"
);
output
(
"
\t
mov x8, #%u
\n
"
,
id
);
output
(
"
\t
mov x8, #%u
\n
"
,
id
);
output
(
"
\t
mov x9, x30
\n
"
);
output
(
"
\t
mov x9, x30
\n
"
);
output
(
"
\t
bl %s
\n
"
,
asm_name
(
"__wine_syscall"
));
output
(
"
\t
ldr x16, 1f
\n
"
);
output
(
"
\t
ldr x16, [x16]
\n
"
);
output
(
"
\t
blr x16
\n
"
);
output
(
"
\t
ret
\n
"
);
output
(
"
\t
ret
\n
"
);
output
(
"1:
\t
.quad %s
\n
"
,
asm_name
(
"__wine_syscall_dispatcher"
)
);
output_seh
(
".seh_endproc"
);
output_seh
(
".seh_endproc"
);
break
;
break
;
default:
default:
...
@@ -1523,14 +1526,6 @@ void output_syscalls( DLLSPEC *spec )
...
@@ -1523,14 +1526,6 @@ void output_syscalls( DLLSPEC *spec )
if
(
UsePIC
)
output
(
"2:
\t
.long %s-1b-%u
\n
"
,
asm_name
(
"__wine_syscall_dispatcher"
),
thumb_mode
?
4
:
8
);
if
(
UsePIC
)
output
(
"2:
\t
.long %s-1b-%u
\n
"
,
asm_name
(
"__wine_syscall_dispatcher"
),
thumb_mode
?
4
:
8
);
output_function_size
(
"__wine_syscall"
);
output_function_size
(
"__wine_syscall"
);
break
;
break
;
case
CPU_ARM64
:
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
16
)
);
output
(
"
\t
%s
\n
"
,
func_declaration
(
"__wine_syscall"
)
);
output
(
"%s:
\n
"
,
asm_name
(
"__wine_syscall"
)
);
output
(
"
\t
adrp x16, %s
\n
"
,
arm64_page
(
asm_name
(
"__wine_syscall_dispatcher"
)
)
);
output
(
"
\t
ldr x16, [x16, #%s]
\n
"
,
arm64_pageoff
(
asm_name
(
"__wine_syscall_dispatcher"
)
)
);
output
(
"
\t
br x16
\n
"
);
output_function_size
(
"__wine_syscall"
);
default:
default:
break
;
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