ld original source with compile options &quot;-ffunction-sections and -fdata-sections&quot;</li>
<li>Build patched source with compile options &quot;-ffunction-sections and -fdata-sections&quot;</li>
<li>Extract new and modified ELF sections
<ul>
<li>Compare #4's output and #5's output at a section level</li>
<li>Result: Elf object included {.kpatch.strings, .kpatch.symbols, .kpatch.relocations}</li>
</ul>
</li>
<li>Build patch module with #6's output</li>
</ol>
<h4><a class="header" href="#core-data-struct