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
Compare revisions
ab7012312f8e6ebf8762b420171cc49d112060d3 to b0a00fafb98416b235b17fbb4ae749babfa47681
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
opensrc/zipr-be
Select target project
No results found
b0a00fafb98416b235b17fbb4ae749babfa47681
Select Git revision
Swap
Target
opensrc/zipr-be
Select target project
No results found
ab7012312f8e6ebf8762b420171cc49d112060d3
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
null terminate eh-frame
· b905f37a
Jason Hiser
authored
5 years ago
b905f37a
made sure landing pads are emitted into the binary
· b0a00faf
Jason Hiser
authored
5 years ago
b0a00faf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ehwrite.cpp
+2
-0
2 additions, 0 deletions
src/ehwrite.cpp
src/zipr.cpp
+11
-6
11 additions, 6 deletions
src/zipr.cpp
src/zipr_dollop_man.cpp
+4
-5
4 additions, 5 deletions
src/zipr_dollop_man.cpp
with
17 additions
and
11 deletions
src/ehwrite.cpp
View file @
b0a00faf
...
...
@@ -1472,6 +1472,8 @@ void ElfEhWriter_t<ptrsize>::GenerateEhOutput()
{
output_fde
(
fde
,
out
,
fde_num
++
);
}
out
<<
"
\t
.int 0 "
<<
asm_comment
<<
" null terminator "
<<
endl
;
};
auto
generate_gcc_except_table
=
[
&
](
ostream
&
out
)
->
void
{
...
...
This diff is collapsed.
Click to expand it.
src/zipr.cpp
View file @
b0a00faf
...
...
@@ -827,16 +827,15 @@ void ZiprImpl_t::PlaceDollops()
/*
* used to check if a reference dollop needs to be added to the placement queue
*/
const
auto
handle_reloc
=
[
&
](
co
nst
Reloca
tion_t
*
reloc
)
const
auto
ensure_insn_is_placed
=
[
&
](
I
nst
ruc
tion_t
*
insn
)
{
auto
wrt_insn
=
dynamic_cast
<
Instruction_t
*>
(
reloc
->
getWRT
());
if
(
wrt_insn
)
if
(
insn
!=
nullptr
)
{
auto
containing
=
m_dollop_mgr
.
getContaining
Dollop
(
wrt_
insn
);
auto
containing
=
m_dollop_mgr
.
addNew
Dollop
s
(
insn
);
assert
(
containing
!=
nullptr
);
if
(
!
containing
->
isPlaced
())
{
placement_queue
.
insert
({
containing
,
wrt_
insn
->
getAddress
()
->
getVirtualOffset
()});
placement_queue
.
insert
({
containing
,
insn
->
getAddress
()
->
getVirtualOffset
()});
}
}
};
...
...
@@ -844,7 +843,13 @@ void ZiprImpl_t::PlaceDollops()
// Make sure each instruction referenced in a relocation (regardless
// of if that relocation is on an instruction or a scoop) gets placed.
for
(
const
auto
&
reloc
:
m_firp
->
getRelocations
())
handle_reloc
(
reloc
);
ensure_insn_is_placed
(
dynamic_cast
<
Instruction_t
*>
(
reloc
->
getWRT
()));
// Make sure each landing pad in a program gets placed.
for
(
const
auto
&
cs
:
m_firp
->
getAllEhCallSites
())
ensure_insn_is_placed
(
cs
->
getLandingPad
());
m_dollop_mgr
.
UpdateAllTargets
();
while
(
!
placement_queue
.
empty
())
{
...
...
This diff is collapsed.
Click to expand it.
src/zipr_dollop_man.cpp
View file @
b0a00faf
...
...
@@ -159,11 +159,10 @@ namespace zipr {
}
}
Zipr_SDK
::
Dollop_t
*
ZiprDollopManager_t
::
getContainingDollop
(
IRDB_SDK
::
Instruction_t
*
insn
)
{
InsnToDollopMap_t
::
iterator
it
=
m_insn_to_dollop
.
find
(
insn
);
if
(
it
!=
m_insn_to_dollop
.
end
())
return
it
->
second
;
return
nullptr
;
Zipr_SDK
::
Dollop_t
*
ZiprDollopManager_t
::
getContainingDollop
(
IRDB_SDK
::
Instruction_t
*
insn
)
{
const
auto
it
=
m_insn_to_dollop
.
find
(
insn
);
return
it
!=
m_insn_to_dollop
.
end
()
?
it
->
second
:
nullptr
;
}
...
...
This diff is collapsed.
Click to expand it.