Changes

33 bytes added ,  11:41, 22 September 2016
Line 10: Line 10:  
Execution of the parasite code starts with the function
 
Execution of the parasite code starts with the function
   −
<pre>
+
<source lang="C">
 
int main(void *arg_p, unsigned int arg_s);
 
int main(void *arg_p, unsigned int arg_s);
</pre>
+
</source>
    
that should be present in your code. The <code>arg_p</code> and <code>arg_s</code> is the binary argument that will get delivered to parasite code by complel <code>_start()</code> call (see below). Sometimes this binary argument can be treated as CLI arguments argc/argv.
 
that should be present in your code. The <code>arg_p</code> and <code>arg_s</code> is the binary argument that will get delivered to parasite code by complel <code>_start()</code> call (see below). Sometimes this binary argument can be treated as CLI arguments argc/argv.
Line 50: Line 50:  
Or, you can link with libcompel.so and use
 
Or, you can link with libcompel.so and use
   −
<pre>
+
<source lang="C">
libcompel_exec() libcompel_exec_start()/libcompel_exec_end()
+
libcompel_exec();
</pre>
+
libcompel_exec_start();
 +
libcompel_exec_end();
 +
</source>
    
calls.
 
calls.