Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SandHook
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
SandHook
Commits
faef936f
Commit
faef936f
authored
Jul 18, 2019
by
swift_gan
Committed by
swift_gan
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BugFix]Fix LDR LIT thumb32
parent
911c490a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
inst_t32.cpp
nativehook/src/main/cpp/archs/arm/arm32/inst/inst_t32.cpp
+4
-1
inst_t32.h
nativehook/src/main/cpp/archs/arm/arm32/inst/inst_t32.h
+2
-0
No files found.
nativehook/src/main/cpp/archs/arm/arm32/inst/inst_t32.cpp
View file @
faef936f
...
...
@@ -120,6 +120,10 @@ Off T32_LDR_LIT::GetImmPCOffset() {
return
Get
()
->
U
==
add
?
Get
()
->
imm12
:
-
Get
()
->
imm12
;
}
Addr
T32_LDR_LIT
::
GetImmPCOffsetTarget
()
{
return
ALIGN
((
Addr
)
GetPC
()
+
offset
,
4
);
}
void
T32_LDR_LIT
::
OnOffsetApply
(
Off
offset
)
{
this
->
offset
=
offset
;
if
(
offset
>=
0
)
{
...
...
@@ -153,7 +157,6 @@ void T32_LDR_LIT::Assemble() {
}
T32_MOV_MOVT_IMM
::
T32_MOV_MOVT_IMM
(
void
*
inst
)
:
InstructionT32
(
inst
)
{
}
...
...
nativehook/src/main/cpp/archs/arm/arm32/inst/inst_t32.h
View file @
faef936f
...
...
@@ -199,6 +199,8 @@ namespace SandHook {
Off
GetImmPCOffset
()
override
;
Addr
GetImmPCOffsetTarget
()
override
;
void
OnOffsetApply
(
Off
offset
)
override
;
void
Disassemble
()
override
;
...
...
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