Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Backend
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
Zipr Backend
Commits
93098fa9
Commit
93098fa9
authored
10 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
forgot new files.
parent
ada7337c
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
.gitattributes
+1
-0
1 addition, 0 deletions
.gitattributes
include/nonce_relocs.h
+76
-0
76 additions, 0 deletions
include/nonce_relocs.h
with
77 additions
and
0 deletions
.gitattributes
+
1
−
0
View file @
93098fa9
...
...
@@ -39,6 +39,7 @@ callbacks/watchsyscall/Makefile.in -text
callbacks/watchsyscall/cgc.s -text
callbacks/watchsyscall/wa_callbacks.c -text
include/memory_space.h -text
include/nonce_relocs.h -text
include/range.h -text
include/unresolved.h -text
include/zipr.h -text
...
...
This diff is collapsed.
Click to expand it.
include/nonce_relocs.h
0 → 100644
+
76
−
0
View file @
93098fa9
/***************************************************************************
* Copyright (c) 2014 Zephyr Software LLC. All rights reserved.
*
* This software is furnished under a license and/or other restrictive
* terms and may be used and copied only in accordance with such terms
* and the inclusion of the above copyright notice. This software or
* any other copies thereof may not be provided or otherwise made
* available to any other person without the express written consent
* of an authorized representative of Zephyr Software LCC. Title to,
* ownership of, and all rights in the software is retained by
* Zephyr Software LCC.
*
* Zephyr Software LLC. Proprietary Information
*
* Unless otherwise specified, the information contained in this
* directory, following this legend, and/or referenced herein is
* Zephyr Software LLC. (Zephyr) Proprietary Information.
*
* CONTACT
*
* For technical assistance, contact Zephyr Software LCC. at:
*
*
* Zephyr Software, LLC
* 2040 Tremont Rd
* Charlottesville, VA 22911
*
* E-mail: jwd@zephyr-software.com
**************************************************************************/
#ifndef nonce_relocs_h
#define nonce_relocs_h
class
NonceRelocs_t
{
public:
// constructors
NonceRelocs_t
(
MemorySpace_t
&
p_ms
,
ELFIO
::
elfio
&
p_elfio
,
libIRDB
::
FileIR_t
&
p_firp
,
Options_t
&
p_opts
)
:
m_memory_space
(
p_ms
),
m_elfio
(
p_elfio
),
m_firp
(
p_firp
),
m_opts
(
p_opts
)
{
}
// main workhorse
void
HandleNonceRelocs
();
private
:
// helpers
bool
IsNonceRelocation
(
libIRDB
::
Relocation_t
&
reloc
);
int
GetNonceValue
(
libIRDB
::
Relocation_t
&
reloc
);
int
GetNonceSize
(
libIRDB
::
Relocation_t
&
reloc
);
void
HandleNonceRelocation
(
libIRDB
::
Instruction_t
&
insn
,
libIRDB
::
Relocation_t
&
reloc
);
// references to input
MemorySpace_t
&
m_memory_space
;
ELFIO
::
elfio
&
m_elfio
;
libIRDB
::
FileIR_t
&
m_firp
;
Options_t
&
m_opts
;
// local data.
// the set of instructions where we were asked to insert a nonce, but
// couldn't. This will be necessary when we need to emit code for the slow path
std
::
set
<
libIRDB
::
Instruction_t
*>
slow_path_nonces
;
};
#endif
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