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
5f38bfed
Commit
5f38bfed
authored
Aug 11, 2016
by
Keno Fischer
Committed by
Alexandre Julliard
Aug 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preloader: Add proper CFI instructions to _start functions.
Signed-off-by:
Keno Fischer
<
keno@juliacomputing.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
be90480c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
preloader.c
loader/preloader.c
+2
-0
No files found.
loader/preloader.c
View file @
5f38bfed
...
...
@@ -212,6 +212,7 @@ struct
void
_start
(
void
);
extern
char
_end
[];
__ASM_GLOBAL_FUNC
(
_start
,
__ASM_CFI
(
"
\t
.cfi_undefined %eip
\n
"
)
"
\t
movl $243,%eax
\n
"
/* SYS_set_thread_area */
"
\t
movl $thread_ldt,%ebx
\n
"
"
\t
int $0x80
\n
"
/* allocate gs segment */
...
...
@@ -363,6 +364,7 @@ void *thread_data[256];
void
_start
(
void
);
extern
char
_end
[];
__ASM_GLOBAL_FUNC
(
_start
,
__ASM_CFI
(
".cfi_undefined %rip
\n\t
"
)
"movq %rsp,%rax
\n\t
"
"leaq -144(%rsp),%rsp
\n\t
"
/* allocate some space for extra aux values */
"movq %rax,(%rsp)
\n\t
"
/* orig stack pointer */
...
...
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