patch-build uses own data structure which added special data structures to elf format. The special data structures are able to include difference section between the origin object and the patched object.<br />
The intermediate objects of kpatch-build are used in the form of kpatch-elf.</p>
<pre><code class="language-c">struct kpatch_elf {
  Elf *elf;
  struct list_head sections;
  struct list_head symbols;
  struct list_head strings;
  int fd;
};
</code></pre>
<h4><a class="header" href="#core-module-a-href