Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
5f33caa2
Commit
5f33caa2
authored
6 years ago
by
Matthew McGill
Browse files
Options
Downloads
Patches
Plain Diff
Removed functions that were only available in p1transform version
Former-commit-id: 2f4f92a53a0e1fa6e86b80eeb0e5258b3cca63a9
parent
4f2f6805
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libtransform/include/Rewrite_Utility.hpp
+0
-8
0 additions, 8 deletions
libtransform/include/Rewrite_Utility.hpp
libtransform/src/Rewrite_Utility.cpp
+0
-78
0 additions, 78 deletions
libtransform/src/Rewrite_Utility.cpp
with
0 additions
and
86 deletions
libtransform/include/Rewrite_Utility.hpp
+
0
−
8
View file @
5f33caa2
...
...
@@ -65,13 +65,5 @@ Instruction_t* allocateNewInstruction(FileIR_t* virp, Instruction_t *template_in
void
setInstructionAssembly
(
FileIR_t
*
virp
,
Instruction_t
*
p_instr
,
string
p_assembly
,
Instruction_t
*
p_fallThrough
,
Instruction_t
*
p_target
);
Instruction_t
*
getHandlerCode
(
FileIR_t
*
virp
,
Instruction_t
*
fallthrough
,
mitigation_policy
policy
);
string
getJumpDataBits
();
string
getJnsDataBits
();
string
getJzDataBits
();
string
getJnzDataBits
();
string
getJecxzDataBits
();
string
getRetDataBits
();
Relocation_t
*
createNewRelocation
(
FileIR_t
*
firp
,
Instruction_t
*
insn
,
string
type
,
int
offset
);
}
This diff is collapsed.
Click to expand it.
libtransform/src/Rewrite_Utility.cpp
+
0
−
78
View file @
5f33caa2
...
...
@@ -249,82 +249,4 @@ void setInstructionAssembly(FileIR_t* virp,Instruction_t *p_instr, string p_asse
}
string
getRetDataBits
()
{
string
dataBits
;
dataBits
.
resize
(
1
);
dataBits
[
0
]
=
0xc3
;
return
dataBits
;
}
string
getJumpDataBits
()
{
string
dataBits
;
dataBits
.
resize
(
5
);
dataBits
[
0
]
=
0xe9
;
dataBits
[
1
]
=
0x00
;
// value doesn't matter -- we will fill it in later
dataBits
[
2
]
=
0x00
;
// value doesn't matter -- we will fill it in later
dataBits
[
3
]
=
0x00
;
// value doesn't matter -- we will fill it in later
dataBits
[
4
]
=
0x00
;
// value doesn't matter -- we will fill it in later
return
dataBits
;
}
// jns - jump not signed
string
getJnsDataBits
()
{
string
dataBits
;
dataBits
.
resize
(
2
);
dataBits
[
0
]
=
0x79
;
dataBits
[
1
]
=
0x00
;
// value doesn't matter -- we will fill it in later
return
dataBits
;
}
// jz - jump zero
string
getJzDataBits
()
{
string
dataBits
;
dataBits
.
resize
(
2
);
dataBits
[
0
]
=
0x74
;
dataBits
[
1
]
=
0x00
;
// value doesn't matter -- we will fill it in later
return
dataBits
;
}
// jnz - jump not zero
string
getJnzDataBits
()
{
string
dataBits
;
dataBits
.
resize
(
2
);
dataBits
[
0
]
=
0x75
;
dataBits
[
1
]
=
0x00
;
// value doesn't matter -- we will fill it in later
return
dataBits
;
}
// jecxz - jump ecx zero
string
getJecxzDataBits
()
{
string
dataBits
;
dataBits
.
resize
(
2
);
dataBits
[
0
]
=
0xe3
;
dataBits
[
1
]
=
0x00
;
// value doesn't matter -- we will fill it in later
return
dataBits
;
}
Relocation_t
*
createNewRelocation
(
FileIR_t
*
firp
,
Instruction_t
*
insn
,
string
type
,
int
offset
)
{
Relocation_t
*
reloc
=
new
Relocation_t
;
insn
->
GetRelocations
().
insert
(
reloc
);
firp
->
GetRelocations
().
insert
(
reloc
);
reloc
->
SetType
(
type
);
reloc
->
SetOffset
(
offset
);
return
reloc
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment