kpatch/kpatch-build
Josh Poimboeuf 56471ffc7c kpatch-build: Support CONFIG_PRINTK_INDEX, part 2
For each printk() call site, CONFIG_PRINTK_INDEX makes a static local
struct named `_entry`, and then adds a pointer to it in the
`.printk_index` section.

When regenerating the `.printk_index` section for the patch module, we
only need to include those entries which are referenced by included
functions.  Luckily this is a common pattern already used by several
other "special" sections.  Add `.printk_index` to the special section
handling logic.

Fixes: #1206

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
2021-08-11 08:47:04 -07:00
..
gcc-plugins gcc-plugin: GCC 10 - update local/non local insn names 2020-06-12 13:27:06 +05:30
insn
Makefile kpatch-build: clang support 2021-02-17 12:59:51 +01:00
create-diff-object.c kpatch-build: Support CONFIG_PRINTK_INDEX, part 2 2021-08-11 08:47:04 -07:00
create-klp-module.c kpatch-elf: pass new ELF output file mode to kpatch_write_output_elf() 2020-09-25 09:30:13 -04:00
create-kpatch-module.c kpatch-elf: pass new ELF output file mode to kpatch_write_output_elf() 2020-09-25 09:30:13 -04:00
kpatch-build kpatch-build: Support CONFIG_PRINTK_INDEX, part 2 2021-08-11 08:47:04 -07:00
kpatch-cc kpatch-build: clang support 2021-02-17 12:59:51 +01:00
kpatch-elf.c kpatch-elf: pass new ELF output file mode to kpatch_write_output_elf() 2020-09-25 09:30:13 -04:00
kpatch-elf.h kpatch-elf: pass new ELF output file mode to kpatch_write_output_elf() 2020-09-25 09:30:13 -04:00
kpatch-intermediate.h lookup: rename 'pos' to 'sympos' 2020-04-06 15:18:58 -05:00
kpatch.h kpatch-build: add exit status enum 2018-06-15 07:11:48 -04:00
list.h
log.h kpatch-build: add exit status enum 2018-06-15 07:11:48 -04:00
lookup.c create-diff-object: clang __UNIQUE_ID symbol support 2021-02-17 12:59:54 +01:00
lookup.h create-diff-object: refactor dynrela conversion 2020-04-06 15:18:58 -05:00