Changes

207 bytes added ,  09:50, 28 November 2016
Line 44: Line 44:  
=== Using libcompel.a library ===
 
=== Using libcompel.a library ===
   −
Currently there is only one way to load the blob into victim task using libcompel.a, called ''c-header''. First you should make a header out of you .po file:
+
Currently there is only one way to load the blob into victim task using libcompel.a, called ''c-header'' <ref>This is done for historical reasons, it was the most handy way to load [[parasite code]] by CRIU. In plans we have loading the .po ELF file itself</ref>. First you should make a header out of you .po file with the <code>hgen</code> action of compel tool:
    
  compel hgen -f parasite.po -v parasite_relocs -p parasite_sym -s parasite_blob -r parasite_nr_gotpcrel -u compel/include/uapi/ -o parasite.h
 
  compel hgen -f parasite.po -v parasite_relocs -p parasite_sym -s parasite_blob -r parasite_nr_gotpcrel -u compel/include/uapi/ -o parasite.h