Open main menu
Home
Random
Log in
Settings
About CRIU
Disclaimers
CRIU
Search
Changes
← Older edit
Newer edit →
Compel
(edit)
Revision as of 18:33, 22 September 2016
72 bytes added
,
18:33, 22 September 2016
→Compiling and packing
:
rephrasing
Line 17:
Line 17:
== Compiling and packing ==
== Compiling and packing ==
−
Take
the
program and compile it
with compel flags:
+
Compile
the
source of your parasite code
with compel flags:
<pre>
<pre>
Line 23:
Line 23:
</pre>
</pre>
−
To combine
the
foo.o out
of
many sources
, they
should
all be linked with
compel
linker flags:
+
If
the
code consists
of
more than one source file
, they all
need to
be
compiled,
+
then
linked
together
with
the proper
linker flags
for compel
:
<pre>
<pre>
Line 29:
Line 30:
</pre>
</pre>
−
Pack
the binary. Packing
would link
the object file with [[compel plugins]].
+
Finally, pack
the binary. Packing
links
the object file with [[compel plugins]].
<pre>
<pre>
−
$ compel pack foo.o -o foo.compel.o [-l plugin]
+
$ compel pack foo.o -o foo.compel.o [-l
''
plugin
'' [...]
]
</pre>
</pre>
Kir
Bureaucrats
,
Administrators
1,067
edits