Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CFI
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
CFI
Commits
2a8ce029
Commit
2a8ce029
authored
6 years ago
by
Matthew McGill
Browse files
Options
Downloads
Patches
Plain Diff
Added case for 0 slow path insns needed
parent
62e0a8df
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nonce_relocs.cpp
+9
-0
9 additions, 0 deletions
nonce_relocs.cpp
with
9 additions
and
0 deletions
nonce_relocs.cpp
+
9
−
0
View file @
2a8ce029
...
...
@@ -350,6 +350,11 @@ Instruction_t* NonceRelocs_t::MakeSlowPathComparesDyn(string reg, Instruction_t*
{
// sanity
assert
(
m_elfio
.
get_type
()
==
ET_DYN
);
if
(
slow_path_nonces
.
size
()
==
0
)
{
return
exit_node
;
}
assert
(
reg
==
"r11"
);
assert
(
m_firp
.
GetArchitectureBitWidth
()
==
64
);
// need diff. solution for 32-bit.
...
...
@@ -471,6 +476,10 @@ Instruction_t* NonceRelocs_t::layoutComparesExec(
Instruction_t
*
NonceRelocs_t
::
MakeSlowPathComparesExec
(
string
reg
,
Instruction_t
*
exit_node
)
{
assert
(
m_elfio
.
get_type
()
==
ET_EXEC
);
if
(
slow_path_nonces
.
size
()
==
0
)
{
return
exit_node
;
}
const
auto
start
=
size_t
(
0
),
end
=
slow_path_nonces
.
size
()
-
1
;
auto
slow_path_nonces_vec
=
vector
<
Instruction_t
*>
(
ALLOF
(
slow_path_nonces
));
...
...
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