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
07f911d5
Commit
07f911d5
authored
8 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
Former-commit-id: 4af21da9ff2cb287f929588f01589ccd4312b19d
parent
0957c943
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/selective_cfi/tests/test_libc.sh
+21
-6
21 additions, 6 deletions
tools/selective_cfi/tests/test_libc.sh
with
21 additions
and
6 deletions
tools/selective_cfi/tests/test_libc.sh
+
21
−
6
View file @
07f911d5
...
...
@@ -10,7 +10,7 @@ do_cfi()
fi
}
do_color
ing_cfi
()
do_c
fi_c
olor
()
{
$PS
$1
$2
--backend
zipr
--step
move_globals
=
on
--step
selective_cfi
=
on
--step-option
selective_cfi:--multimodule
--step-option
move_globals:--cfi
--step-option
fix_calls:--fix-all
--step-option
selective_cfi:--color
--step-option
zipr:
"--add-sections false"
if
[
!
$?
-eq
0
]
;
then
...
...
@@ -22,14 +22,16 @@ do_coloring_cfi()
get_correct
()
{
echo
"get_correct()"
cp
libc.so.6.orig libc.so.6
LD_LIBRARY_PATH
=
.:
$LD_LIBRARY_PATH
./libc_driver.exe
>
correct
./libc_driver.exe
$*
>
correct
}
test
()
{
cp
$2
libfoo.so
./
$1
>
out
libc
=
$2
pgm
=
$1
shift
2
LD_PRELOAD
=
$2
./
$pgm
$*
>
out
cmp out correct
if
[
$?
=
1
]
;
then
...
...
@@ -55,6 +57,9 @@ build()
protect
()
{
do_cfi libc.so.6.orig libc-2.19.so.cfi
do_cfi libc_driver.exe libc_driver.exe.cfi
do_cfi_color libc.so.6.orig libc-2.19.so.colorcfi
do_cfi_color libc_driver.exe libc_driver.exe.colorcfi
}
clean
()
...
...
@@ -76,8 +81,18 @@ main()
build
protect
get_correct
test
libc_driver.exe libc.so.6.orig
test
libc_driver.exe.cfi libc.so.6.orig
test
libc_driver.exe.colorcfi libc.so.6.orig
test
libc_driver.exe libc.so.6.cfi
test
libc_driver.exe.cfi libc.so.6.cfi
test
libc_driver.exe.colorcfi libc.so.6.cfi
test
libc_driver.exe libc.so.6.colorcfi
test
libc_driver.exe.cfi libc.so.6.colorcfi
test
libc_driver.exe.colorcfi libc.so.6.colorcfi
report
#
clean
clean
}
passes
=
0
...
...
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