kpatch/kpatch-build
Josh Poimboeuf 85def82275 lookup: skip discarded symbols in local symbol comparison
A few symbols are discarded in the kernel linking phase, which means
they won't be in the lookup table.  Skip their comparison.

This fixes a bunch of warnings seen when building a patch which triggers
a tree-wide rebuild:

  create-diff-object: ERROR: aes_glue.o: find_local_syms: 112: find_local_syms for aes_glue.c: found_none
  create-diff-object: ERROR: aesni-intel_glue.o: find_local_syms: 112: find_local_syms for aesni-intel_glue.c: found_none
  create-diff-object: ERROR: init.o: find_local_syms: 112: find_local_syms for init.c: found_none
  create-diff-object: ERROR: iosf_mbi.o: find_local_syms: 112: find_local_syms for iosf_mbi.c: found_none
  create-diff-object: ERROR: setup.o: find_local_syms: 112: find_local_syms for setup.c: found_none
  ...

After this patch, there's still one warning remaining:

  create-diff-object: ERROR: dynamic_debug.o: find_local_syms: 133: find_local_syms for dynamic_debug.c: found_none

That one has a completely different cause, which I'll fix in another
pull request (coming soon).

Fixes: #676
2017-03-03 09:10:15 -06:00
..
insn insn: get it to compile in create-diff-object 2014-05-30 15:19:57 -05:00
Makefile create-kpatch-module: add new program that creates kpatch modules 2017-01-23 12:43:34 -08:00
create-diff-object.c support dup file+symbol 2017-02-04 09:37:18 +08:00
create-klp-module.c create-klp-module: add new program that creates patch modules that have klp elements 2017-01-23 12:43:31 -08:00
create-kpatch-module.c create-kpatch-module: add new program that creates kpatch modules 2017-01-23 12:43:34 -08:00
kpatch-build kpatch-build: consider CONFIG_PARAVIRT optional 2017-02-09 10:14:34 -05:00
kpatch-elf.c kpatch-elf: add find_rela_by_offset() 2017-01-23 12:43:27 -08:00
kpatch-elf.h kpatch-elf: add find_rela_by_offset() 2017-01-23 12:43:27 -08:00
kpatch-gcc kpatch-build: fix 'undefined reference to kpatch_shadow_*' errors 2016-12-05 20:22:11 -06:00
kpatch-intermediate.h kpatch-intermediate.h: fix comments 2017-01-23 22:42:25 -08:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
log.h log: include error.h 2017-01-23 12:42:35 -08:00
lookup.c lookup: skip discarded symbols in local symbol comparison 2017-03-03 09:10:15 -06:00
lookup.h support dup file+symbol 2017-02-04 09:37:18 +08:00