mirror of
https://github.com/dynup/kpatch
synced 2025-03-25 04:16:39 +00:00
With #650, we found that using -ffunction-sections and -fdata-sections sometimes causes GCC to output the local symbols in a different order in the symbol table. So don't assume they're in the same order, and instead search all the locals. This requires two passes: once going through the lookup table symbols and once going through the .o symbols. This is needed to make sure there aren't any extra symbols in one of the files. I also reorganized the code a bit to simplify it. |
||
---|---|---|
.. | ||
insn | ||
create-diff-object.c | ||
create-klp-module.c | ||
create-kpatch-module.c | ||
kpatch-build | ||
kpatch-elf.c | ||
kpatch-elf.h | ||
kpatch-gcc | ||
kpatch-intermediate.h | ||
list.h | ||
log.h | ||
lookup.c | ||
lookup.h | ||
Makefile |