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
e187c4ae
Commit
e187c4ae
authored
Apr 12, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Apr 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Respect the 8-bit part in the ARM relocation.
parent
3f39f377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
loader.c
dlls/ntdll/loader.c
+4
-4
No files found.
dlls/ntdll/loader.c
View file @
e187c4ae
...
...
@@ -2180,7 +2180,7 @@ IMAGE_BASE_RELOCATION * WINAPI LdrProcessRelocationBlock( void *page, UINT count
{
DWORD
inst
=
*
(
INT_PTR
*
)((
char
*
)
page
+
offset
);
DWORD
imm16
=
((
inst
<<
1
)
&
0x0800
)
+
((
inst
<<
12
)
&
0xf000
)
+
((
inst
>>
20
)
&
0x0700
)
+
((
inst
>>
16
)
&
0x00
0
f
);
((
inst
>>
20
)
&
0x0700
)
+
((
inst
>>
16
)
&
0x00
f
f
);
if
((
inst
&
0x8000fbf0
)
!=
0x0000f240
)
ERR
(
"wrong Thumb2 instruction %08x, expected MOVW
\n
"
,
inst
);
...
...
@@ -2191,13 +2191,13 @@ IMAGE_BASE_RELOCATION * WINAPI LdrProcessRelocationBlock( void *page, UINT count
*
(
INT_PTR
*
)((
char
*
)
page
+
offset
)
=
(
inst
&
0x8f00fbf0
)
+
((
imm16
>>
1
)
&
0x0400
)
+
((
imm16
>>
12
)
&
0x000f
)
+
((
imm16
<<
20
)
&
0x70000000
)
+
((
imm16
<<
16
)
&
0x
0
f0000
);
((
imm16
<<
16
)
&
0x
f
f0000
);
if
(
delta
>
0xffff
)
{
inst
=
*
(
INT_PTR
*
)((
char
*
)
page
+
offset
+
4
);
imm16
=
((
inst
<<
1
)
&
0x0800
)
+
((
inst
<<
12
)
&
0xf000
)
+
((
inst
>>
20
)
&
0x0700
)
+
((
inst
>>
16
)
&
0x00
0
f
);
((
inst
>>
20
)
&
0x0700
)
+
((
inst
>>
16
)
&
0x00
f
f
);
if
((
inst
&
0x8000fbf0
)
!=
0x0000f2c0
)
ERR
(
"wrong Thumb2 instruction %08x, expected MOVT
\n
"
,
inst
);
...
...
@@ -2209,7 +2209,7 @@ IMAGE_BASE_RELOCATION * WINAPI LdrProcessRelocationBlock( void *page, UINT count
((
imm16
>>
1
)
&
0x0400
)
+
((
imm16
>>
12
)
&
0x000f
)
+
((
imm16
<<
20
)
&
0x70000000
)
+
((
imm16
<<
16
)
&
0x
0
f0000
);
((
imm16
<<
16
)
&
0x
f
f0000
);
}
}
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